summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-05-19 08:15:18 +0200
committerErich Eckner <git@eckner.net>2021-05-19 08:15:18 +0200
commit1abab84c3f1563fb3933f48e1e7c74fe643ffb26 (patch)
treea11080b0b7babf84b2da2c56b16f480d50e4e742
parent4cbbd7caec3a9e1ed5324e75df3c0da25e33d93b (diff)
downloadpasswort-tresor-1abab84c3f1563fb3933f48e1e7c74fe643ffb26.tar.xz
passwort-tresor.in: rm -rf --one-file-system
-rw-r--r--passwort-tresor.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/passwort-tresor.in b/passwort-tresor.in
index 024eb31..7980a48 100644
--- a/passwort-tresor.in
+++ b/passwort-tresor.in
@@ -1,7 +1,7 @@
#!/bin/bash
beenden () {
- [ -n "${tmpDir}" ] && rm -rf "${tmpDir}"
+ [ -n "${tmpDir}" ] && rm -rf --one-file-system "${tmpDir}"
[ -n "$1" ] && [ "$1" -ne 0 ] && >&2 echo 'Ich beende.'
exit $1
}
@@ -226,7 +226,7 @@ then
fi
output="$(grep -2 "${suchStr}" "${tmpDir}/output" | tail -n2)"
shred -zu "${tmpDir}/output"
- rm -rf "${tmpDir}"
+ rm -rf --one-file-system "${tmpDir}"
echo "${output}" | head -n1 | xclip -i
echo -n "."