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