mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Don't try restoring a file if no backup is available
This caused `all.sh --force` to fail on a clean build tree. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@ -314,7 +314,9 @@ cleanup()
|
|||||||
|
|
||||||
# Restore files that may have been clobbered by the job
|
# Restore files that may have been clobbered by the job
|
||||||
for x in $files_to_back_up; do
|
for x in $files_to_back_up; do
|
||||||
cp -p "$x$backup_suffix" "$x"
|
if [[ -e "$x$backup_suffix" ]]; then
|
||||||
|
cp -p "$x$backup_suffix" "$x"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user