diff --git a/deploy_dqmgui.sh b/deploy_dqmgui.sh index a1d8187..3c8a5c8 100755 --- a/deploy_dqmgui.sh +++ b/deploy_dqmgui.sh @@ -86,7 +86,7 @@ preliminary_checks() { # Delete installation (config & sw, does not delete state) if [ -d "${INSTALLATION_DIR:?}/${DMWM_GIT_TAG:?}" ]; then echo "WARNING: $INSTALLATION_DIR/$DMWM_GIT_TAG exists, deleting contents (except auth)" - find "${INSTALLATION_DIR:?}/${DMWM_GIT_TAG:?}/" -maxdepth 1 -type d ! -name auth -exec rm -rf {} \; + find "${INSTALLATION_DIR:?}/${DMWM_GIT_TAG:?}/" -maxdepth 1 -mindepth 1 -type d ! -path . ! -name auth -exec rm -rf {} \; fi if [ -n "$DMWM_PRS" ]; then