From 785fccfb032f8ba18fed9bdd51e3e3d7e4ca0074 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20V=C3=A1zquez=20Viader?= Date: Sat, 24 Oct 2020 19:05:03 +0200 Subject: [PATCH] For use regexp in include/exclude, it is needed to surround expresion in single quotes --- upload.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload.sh b/upload.sh index 6b9fdf0..b79aa14 100755 --- a/upload.sh +++ b/upload.sh @@ -43,11 +43,11 @@ PLUGIN_INCLUDE_STR="" IFS=',' read -ra in_arr <<< "$PLUGIN_EXCLUDE" for i in "${in_arr[@]}"; do - PLUGIN_EXCLUDE_STR="$PLUGIN_EXCLUDE_STR -x $i" + PLUGIN_EXCLUDE_STR="$PLUGIN_EXCLUDE_STR -x '$i'" done IFS=',' read -ra in_arr <<< "$PLUGIN_INCLUDE" for i in "${in_arr[@]}"; do - PLUGIN_INCLUDE_STR="$PLUGIN_INCLUDE_STR -i $i" + PLUGIN_INCLUDE_STR="$PLUGIN_INCLUDE_STR -i '$i'" done lftp -e "set xfer:log 1; \