From c46caf27a4ef7b0985ae60058ebcd05c8516c8ae Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 22 Sep 2024 15:14:42 +0200 Subject: [PATCH] Remove setup files after installation --- scripts/Common/OS/install.fish | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/Common/OS/install.fish b/scripts/Common/OS/install.fish index 5ff24b6d9..2a8f87ab0 100755 --- a/scripts/Common/OS/install.fish +++ b/scripts/Common/OS/install.fish @@ -59,7 +59,15 @@ else end and runHook postInstall || true - echo "The installation finished successfully!" + and sudo git config remove-section --system safe + + and begin + set -l projectPath (realpath "$(status dirname)/../../..") + cd (dirname "$projectPath") + sudo rm -rf "$projectPath" + end + + and echo "The installation finished successfully!" and echo "This machine will reboot in 5 seconds..." and echo "Press CTRL-C to abort..." and sleep 5