From 465d4cae85e2bda82290042983f9778edc3d9072 Mon Sep 17 00:00:00 2001 From: Michael de Wit Date: Thu, 29 Dec 2016 17:06:47 +0100 Subject: [PATCH] Fix a bug where setting 'delete' or 'recursive' to false would still perform these operations --- upload.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload.sh b/upload.sh index ead9953..1609c3c 100755 --- a/upload.sh +++ b/upload.sh @@ -44,11 +44,11 @@ fi # Building rsync command expr="rsync -az" -if [[ -n "$PLUGIN_RECURSIVE" && $PLUGIN_RECURSIVE ]]; then +if [[ -n "$PLUGIN_RECURSIVE" && "$PLUGIN_RECURSIVE" == "true" ]]; then expr="$expr -r" fi -if [[ -n "$PLUGIN_DELETE" && $PLUGIN_DELETE ]]; then +if [[ -n "$PLUGIN_DELETE" && "$PLUGIN_DELETE" == "true" ]]; then expr="$expr --del" fi