diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-04 18:57:20 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-04 18:57:20 +0200 |
commit | daef61498396d6357db1da429b3cb5fbd0f639f5 (patch) | |
tree | e0b85fcacb38c01363dbff754cd14412d8aa4b97 /common | |
parent | fix(common/init): Don't delete the init file, if the exit reason was a missin... (diff) | |
download | flake-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/init | 1 |
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() { |