Fix delete dir condition
This commit is contained in:
parent
9322954e39
commit
3f5d32cffe
@ -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; \
|
||||||
|
Loading…
Reference in New Issue
Block a user