Cleanup function
This commit is contained in:
parent
64cb93c84c
commit
701633a6fa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue