Remove quotes to fix use of asterisk in command

Changing the default boot was failing because remove the old entries did
not work as `rm "/some/path/*.txt"` does not work as intended, e.g. the
asterisk is no catch-all.
This commit is contained in:
alex-nitrokey 2020-08-26 13:21:57 +02:00
parent a075347351
commit c7085d89c3
No known key found for this signature in database
GPG Key ID: A8853020E8EE6FBA

View File

@ -120,7 +120,7 @@ if [ ! -d $paramsdir ]; then
mkdir -p $paramsdir \
|| die "Failed to create params directory"
fi
rm "$paramsdir/kexec_default.*.txt" 2>/dev/null || true
rm $paramsdir/kexec_default.*.txt 2>/dev/null || true
echo "$entry" > $ENTRY_FILE
cd $bootdir && kexec-boot -b "$bootdir" -e "$entry" -f | \
xargs sha256sum > $HASH_FILE \