summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-04-14 12:50:15 +0200
committerErich Eckner <git@eckner.net>2021-04-14 12:50:15 +0200
commit1dc8b055dbe40f266073a50aea011e7f02d3b757 (patch)
tree9f4403c5add6ded0cea562f475a4832cf5ea31ba
parenta41bb654309138aaed1c15baa66891548a5d048c (diff)
downloadshutdownasap-1dc8b055dbe40f266073a50aea011e7f02d3b757.tar.xz
shutdownasap: go to not-to-be-unmounted directory
-rwxr-xr-xshutdownasap.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/shutdownasap.in b/shutdownasap.in
index d2d471f..d131867 100755
--- a/shutdownasap.in
+++ b/shutdownasap.in
@@ -7,6 +7,7 @@ set -e
. #ETCDIR#/shutdownasap.conf
mkdir -p "${tmpDir}"
+cd "${tmpDir}"
quiet=false
intentionSet=false
@@ -157,4 +158,5 @@ case "$(head -n1 "${tmpDir}/intention")" in
;;
esac
+cd /
rm -rf --one-file-system "${tmpDir}"