Script update so that it does not override usefull env vars

This commit is contained in:
Léo 2020-11-05 15:39:38 +01:00
parent f388124762
commit 8ae5c2d9d6

View File

@ -220,11 +220,11 @@ then
# File password
[ ! $FILEPASSWORD = "$UNSET" ] && ARGS+=("-F" "filepwd=$FILEPASSWORD")
# Add files
for PATH in "${FILES[@]}"
for FPATH in "${FILES[@]}"
do
FULLURL="$URL"
[ ! "$GETPATH" = "$UNSET" ] && FULLURL+="$GETPATH"
FULLURL+="/$USERNAME/$FILES"
FULLURL+="/$USERNAME/$FPATH"
ARGS+=("$FULLURL")
done
else