Skip to content

Commit

Permalink
tree-wide: Ignore CTRL + Z ( SIGTSTP )
Browse files Browse the repository at this point in the history
this doesn't let the script cleanup which can lead to problems
  • Loading branch information
Akianonymus committed Nov 7, 2020
1 parent 523d383 commit 9a4ac22
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bash/release/gsync
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,8 @@ main() {
{ . "${UTILS_FOLDER}"/common-utils.bash; } || { printf "Error: Unable to source util files.\n" && exit 1; }
}

trap '' TSTP # ignore ctrl + z

_setup_arguments "${@}"
_check_debug
_config_variables
Expand Down
1 change: 1 addition & 0 deletions bash/release/gupload
Original file line number Diff line number Diff line change
Expand Up @@ -1708,6 +1708,7 @@ main() {

trap 'abnormal_exit="1"; exit' INT TERM
trap '_cleanup' EXIT
trap '' TSTP # ignore ctrl + z

export MAIN_PID="$$"

Expand Down
2 changes: 2 additions & 0 deletions bash/sync.bash
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,8 @@ main() {
{ . "${UTILS_FOLDER}"/common-utils.bash; } || { printf "Error: Unable to source util files.\n" && exit 1; }
}

trap '' TSTP # ignore ctrl + z

_setup_arguments "${@}"
_check_debug
_config_variables
Expand Down
1 change: 1 addition & 0 deletions bash/upload.bash
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ main() {

trap 'abnormal_exit="1"; exit' INT TERM
trap '_cleanup' EXIT
trap '' TSTP # ignore ctrl + z

export MAIN_PID="$$"

Expand Down
2 changes: 2 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,8 @@ main() {
fi
}

trap '' TSTP # ignore ctrl + z

if [ -n "${UNINSTALL}" ]; then
{ _check_existing_command && _uninstall; } ||
{ "${QUIET:-_print_center}" "justify" "google-drive-upload is not installed." "="; }
Expand Down
2 changes: 2 additions & 0 deletions sh/release/gsync
Original file line number Diff line number Diff line change
Expand Up @@ -1004,6 +1004,8 @@ main() {
eval "${SOURCE_UTILS}" || { printf "Error: Unable to source util files.\n" && exit 1; }
fi

trap '' TSTP # ignore ctrl + z

_setup_arguments "${@}"
_check_debug
_config_variables
Expand Down
1 change: 1 addition & 0 deletions sh/release/gupload
Original file line number Diff line number Diff line change
Expand Up @@ -1719,6 +1719,7 @@ main() {
trap 'abnormal_exit="1" ; exit' INT TERM
trap '_cleanup' EXIT
trap '' TSTP # ignore ctrl + z
export MAIN_PID="$$"
Expand Down
2 changes: 2 additions & 0 deletions sh/sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,8 @@ main() {
eval "${SOURCE_UTILS}" || { printf "Error: Unable to source util files.\n" && exit 1; }
fi

trap '' TSTP # ignore ctrl + z

_setup_arguments "${@}"
_check_debug
_config_variables
Expand Down
1 change: 1 addition & 0 deletions sh/upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,7 @@ main() {
trap 'abnormal_exit="1" ; exit' INT TERM
trap '_cleanup' EXIT
trap '' TSTP # ignore ctrl + z
export MAIN_PID="$$"
Expand Down

0 comments on commit 9a4ac22

Please sign in to comment.