Rearrange code order
This commit is contained in:
parent
ad51c532e3
commit
8ce46d5e20
12
upload.sh
12
upload.sh
@ -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; \
|
||||
|
Loading…
Reference in New Issue
Block a user