From c623173aa98c64ba718252e31377b80b9b2530eb Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Sun, 1 Sep 2019 17:55:21 +0000 Subject: [PATCH] Fix not working automatic removal of old working dir in case of all action. --- sit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}