Fix a bug where setting 'delete' or 'recursive' to false would still perform these operations

This commit is contained in:
Michael de Wit
2016-12-29 17:06:47 +01:00
parent a51fa78868
commit 465d4cae85

View File

@@ -44,11 +44,11 @@ fi
# Building rsync command # Building rsync command
expr="rsync -az" expr="rsync -az"
if [[ -n "$PLUGIN_RECURSIVE" && $PLUGIN_RECURSIVE ]]; then if [[ -n "$PLUGIN_RECURSIVE" && "$PLUGIN_RECURSIVE" == "true" ]]; then
expr="$expr -r" expr="$expr -r"
fi fi
if [[ -n "$PLUGIN_DELETE" && $PLUGIN_DELETE ]]; then if [[ -n "$PLUGIN_DELETE" && "$PLUGIN_DELETE" == "true" ]]; then
expr="$expr --del" expr="$expr --del"
fi fi