diff options
Diffstat (limited to 'functions/stagefile.sh')
-rwxr-xr-x | functions/stagefile.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/functions/stagefile.sh b/functions/stagefile.sh index 6a41cda..a570ea2 100755 --- a/functions/stagefile.sh +++ b/functions/stagefile.sh @@ -17,14 +17,15 @@ Check_stagefile () # Checking stage file if [ -f "${FILE}" ] then - if [ "${LH_FORCE}" = "enabled" ] + if [ "${LH_FORCE}" != "enabled" ] then - # Forcing execution - rm -f "${FILE}" - else # Skipping execution Echo_warning "skipping ${NAME}" exit 0 + else + # Forcing execution + Echo_message "forcing ${NAME}" + rm -f "${FILE}" fi fi } |