From 701633a6fa70656a38d80b282ba9d312841abc7e Mon Sep 17 00:00:00 2001 From: Augusto Gunsch Date: Fri, 13 Aug 2021 10:48:43 -0300 Subject: [PATCH] Cleanup function --- post-install.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/post-install.sh b/post-install.sh index 9ea441b..ba2018e 100755 --- a/post-install.sh +++ b/post-install.sh @@ -597,10 +597,15 @@ aur_build_setup() { echo "done" } -aur_build_remove() { - echo -n "Removeing temporary build directory..." +cleanup() { + echo -n "Removing temporary build directory..." rm -rf "$AUR_BUILD_DIR" echo "done" + + echo -n "Removing files from script..." + rm packages.csv + rm post-install.sh + echo "done" } main() { @@ -609,7 +614,7 @@ main() { install_packages install_dotfiles configure_doas - aur_build_remove + cleanup } main