Cleanup function

This commit is contained in:
Augusto Gunsch 2021-08-13 10:48:43 -03:00
parent 64cb93c84c
commit 701633a6fa
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
1 changed files with 8 additions and 3 deletions

View File

@ -597,10 +597,15 @@ aur_build_setup() {
echo "done" echo "done"
} }
aur_build_remove() { cleanup() {
echo -n "Removeing temporary build directory..." echo -n "Removing temporary build directory..."
rm -rf "$AUR_BUILD_DIR" rm -rf "$AUR_BUILD_DIR"
echo "done" echo "done"
echo -n "Removing files from script..."
rm packages.csv
rm post-install.sh
echo "done"
} }
main() { main() {
@ -609,7 +614,7 @@ main() {
install_packages install_packages
install_dotfiles install_dotfiles
configure_doas configure_doas
aur_build_remove cleanup
} }
main main