about summary refs log tree commit diff stats
path: root/common
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-04 18:57:20 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-04 18:57:20 +0200
commitdaef61498396d6357db1da429b3cb5fbd0f639f5 (patch)
treee0b85fcacb38c01363dbff754cd14412d8aa4b97 /common
parentfix(common/init): Don't delete the init file, if the exit reason was a missin... (diff)
downloadflake-templates-daef61498396d6357db1da429b3cb5fbd0f639f5.tar.gz
flake-templates-daef61498396d6357db1da429b3cb5fbd0f639f5.zip
fix(common/init): Also delete the init.local file, if it exists
Diffstat (limited to '')
-rw-r--r--common/init1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/init b/common/init
index 63a72fa..d875cdd 100644
--- a/common/init
+++ b/common/init
@@ -15,6 +15,7 @@ remove_self() {
     if [ "$avoid_cleanup" = "false" ]; then
         rm "$(realpath "$0")"
         rm "$(realpath "$(dirname "$0")")/shell_line_editor.sh"
+        [ -f "$(realpath "$(dirname "$0")")/init.local" ] && rm "$(realpath "$(dirname "$0")")/init.local"
     fi
 }
 require() {