mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-08 11:52:32 +01:00
match prior rm usage w/test and rm instead of rm -f
This commit is contained in:
parent
3f1dabf3a8
commit
21abd730ab
@ -600,7 +600,9 @@ if [ "$luksheaders" == "yes" ]; then
|
||||
label=${dev#/dev/}
|
||||
label=${label//\//-}
|
||||
outputfile=${luksheadersfile//__star__/$label}
|
||||
rm -f "${outputfile}"
|
||||
if [ -f "${outputfile}" ]; then
|
||||
rm "${outputfile}"
|
||||
fi
|
||||
debug "$CRYPTSETUP will try to backup the LUKS header for device $dev"
|
||||
debug "$CRYPTSETUP luksHeaderBackup \"${dev}\" --header-backup-file \"${outputfile}\""
|
||||
output=`$CRYPTSETUP luksHeaderBackup "${dev}" --header-backup-file "${outputfile}" 2>&1`
|
||||
|
Loading…
Reference in New Issue
Block a user