Remove setup files after installation

This commit is contained in:
Manuel Thalmann 2024-09-22 15:14:42 +02:00
parent 0ac49ce81e
commit c46caf27a4

View file

@ -59,7 +59,15 @@ else
end end
and runHook postInstall || true 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 "This machine will reboot in 5 seconds..."
and echo "Press CTRL-C to abort..." and echo "Press CTRL-C to abort..."
and sleep 5 and sleep 5