Rearrange code order

This commit is contained in:
squaresun 2018-03-05 10:09:46 +08:00 committed by dominic
parent ad51c532e3
commit 8ce46d5e20

View File

@ -32,6 +32,12 @@ else
PLUGIN_CHMOD=""
fi
if [ "$PLUGIN_CLEAN_DIR" = true ]; then
PLUGIN_CLEAN_DIR="rm -r $PLUGIN_DEST_DIR"
else
PLUGIN_CLEAN_DIR=""
fi
PLUGIN_EXCLUDE_STR=""
PLUGIN_INCLUDE_STR=""
@ -44,12 +50,6 @@ for i in "${in_arr[@]}"; do
PLUGIN_INCLUDE_STR="$PLUGIN_INCLUDE_STR -i $i"
done
if [ "$PLUGIN_CLEAN_DIR" = true ]; then
PLUGIN_CLEAN_DIR="rm -r $PLUGIN_DEST_DIR"
else
PLUGIN_CLEAN_DIR=""
fi
lftp -e "set xfer:log 1; \
set ftp:ssl-allow $PLUGIN_SECURE; \
set ftp:ssl-force $PLUGIN_SECURE; \