add delete directory param
This commit is contained in:
parent
25eb330321
commit
e537c1140e
1 changed files with 4 additions and 0 deletions
|
@ -48,6 +48,10 @@ for i in "${in_arr[@]}"; do
|
|||
PLUGIN_INCLUDE_STR="$PLUGIN_INCLUDE_STR -i $i"
|
||||
done
|
||||
|
||||
if [ -z "$PLUGIN_DELETE_DIR" ] && [ "$PLUGIN_DELETE_DIR" = true ]; then
|
||||
lftp -e 'rm -r $PLUGIN_DEST_DIR' -u $FTP_USERNAME,$FTP_PASSWORD $PLUGIN_HOSTNAME
|
||||
fi
|
||||
|
||||
lftp -e "set xfer:log 1; \
|
||||
set ftp:ssl-allow $PLUGIN_SECURE; \
|
||||
set ftp:ssl-force $PLUGIN_SECURE; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue