Skip to content

Commit

Permalink
Move trap to appropriate place
Browse files Browse the repository at this point in the history
  • Loading branch information
nothingface0 committed Dec 19, 2023
1 parent 5c7fdb0 commit 7833d95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy_dqmgui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,6 @@ function _cleanup() {
clean_acrontab
}

trap _cleanup SIGINT

### Main script ###

# Declare each step of the installation procedure here. Steps
Expand Down Expand Up @@ -596,6 +594,8 @@ NUMERIC_TMP_DIR="${TMP_BASE_PATH}/numeric"
DQMGUI_TMP_DIR="${TMP_BASE_PATH}/dqmgui"
# Where ROOT will be installed
ROOT_INSTALLATION_DIR="$INSTALLATION_DIR/root"
# Cleanup if interrupted
trap _cleanup SIGINT

# Go to the installation directory
cd $INSTALLATION_DIR/
Expand Down

0 comments on commit 7833d95

Please sign in to comment.