diff --git a/sit b/sit index 837fa1c..d0cbde2 100755 --- a/sit +++ b/sit @@ -245,7 +245,7 @@ sit_countdown 3 # if working dir already exists and execution option is Default then remove # previous working directory and create new -if [[ -d ${WORKDIR} && -z $sit_action ]] ; then +if [[ -d ${WORKDIR} && $sit_action == "all" ]] ; then sit_info "Removing existing working directory ${WORKDIR}" sit_countdown 5 rm -rf ${WORKDIR}