Fix not working automatic removal of old working dir in case of all action.

This commit is contained in:
Christoph Niethammer 2019-09-01 17:55:21 +00:00
parent 956f1a2827
commit c623173aa9

2
sit
View file

@ -245,7 +245,7 @@ sit_countdown 3
# if working dir already exists and execution option is Default then remove # if working dir already exists and execution option is Default then remove
# previous working directory and create new # 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_info "Removing existing working directory ${WORKDIR}"
sit_countdown 5 sit_countdown 5
rm -rf ${WORKDIR} rm -rf ${WORKDIR}