From 1dc8b055dbe40f266073a50aea011e7f02d3b757 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 14 Apr 2021 12:50:15 +0200 Subject: shutdownasap: go to not-to-be-unmounted directory --- shutdownasap.in | 2 ++ 1 file changed, 2 insertions(+) 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}" -- cgit v1.2.3-70-g09d2