mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-20 05:28:08 +00:00
recovery call: since we operate under set -e, make sure that shred failing doesn't exit
This commit is contained in:
parent
8e73d91121
commit
87027d6a88
@ -17,7 +17,9 @@ recovery() {
|
||||
|
||||
# Remove any temporary secret files that might be hanging around
|
||||
# but recreate the directory so that new tools can use it.
|
||||
shred -n 10 -z -u /tmp/secret/* 2> /dev/null
|
||||
|
||||
#safe to always be true. Otherwise "set -e" would make it exit here
|
||||
shred -n 10 -z -u /tmp/secret/* 2> /dev/null || true
|
||||
rm -rf /tmp/secret
|
||||
mkdir -p /tmp/secret
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user