mirror of
https://github.com/kevinnlsamuel/bak-old.git
synced 2025-12-06 01:55:58 +05:30
add trap to installation script
This commit is contained in:
@@ -149,9 +149,11 @@ cleanup(){
|
||||
# cleanup
|
||||
cd "$HOME"
|
||||
rm -rf "$work_dir"
|
||||
exit $1
|
||||
exit ${1-0}
|
||||
}
|
||||
|
||||
trap "cleanup 1" SIGHUP SIGINT SIGTERM ERR
|
||||
|
||||
install(){
|
||||
setup
|
||||
find_dler
|
||||
|
||||
Reference in New Issue
Block a user