Fix delete dir condition

This commit is contained in:
dominic 2018-03-05 09:49:41 +08:00
parent 9322954e39
commit 3f5d32cffe

View File

@ -48,11 +48,10 @@ for i in "${in_arr[@]}"; do
PLUGIN_INCLUDE_STR="$PLUGIN_INCLUDE_STR -i $i" PLUGIN_INCLUDE_STR="$PLUGIN_INCLUDE_STR -i $i"
done done
if [ -z "$PLUGIN_DELETE_DIR" ] && [ "$PLUGIN_DELETE_DIR" = true ]; then if [ "$PLUGIN_DELETE_DIR" = true ]; then
PLUGIN_DELETE_DIR="rm -r $PLUGIN_DEST_DIR" PLUGIN_DELETE_DIR="rm -r $PLUGIN_DEST_DIR"
else else
PLUGIN_DELETE_DIR="" PLUGIN_DELETE_DIR=""
echo "hi"
fi fi
lftp -e "set xfer:log 1; \ lftp -e "set xfer:log 1; \