Skip to content

Commit

Permalink
Extra check for file existence
Browse files Browse the repository at this point in the history
  • Loading branch information
nothingface0 committed Nov 30, 2023
1 parent 1f95165 commit 564c171
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deploy_dqmgui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ preliminary_checks() {
esac

# Stop GUI if already running
if [ -f $INSTALLATION_DIR/$DMWM_GIT_TAG/config/dqmgui/manage ]; then
if [ -f "$INSTALLATION_DIR/$DMWM_GIT_TAG/config/dqmgui/manage" ] &&
[ -f "$INSTALLATION_DIR/$DMWM_GIT_TAG/sw/cms/dqmgui/$DQMGUI_GIT_TAG/128/etc/profile.d/env.sh" ]; then
$INSTALLATION_DIR/$DMWM_GIT_TAG/config/dqmgui/manage stop 'I did read documentation'
fi

Expand Down

0 comments on commit 564c171

Please sign in to comment.