Fix a bug where setting 'delete' or 'recursive' to false would still perform these operations
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user