Commit a53b7114 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: always use filter for separated mask

parent c4535a49
...@@ -1457,6 +1457,7 @@ fi ...@@ -1457,6 +1457,7 @@ fi
if [ -n "$2" ] ; then if [ -n "$2" ] ; then
URL="$1" URL="$1"
MASK="$2" MASK="$2"
SEPMASK="$2"
else else
if have_end_slash "$1" ; then if have_end_slash "$1" ; then
URL="$1" URL="$1"
...@@ -1503,7 +1504,7 @@ is_wildcard() ...@@ -1503,7 +1504,7 @@ is_wildcard()
} }
# If there is no wildcard symbol like asterisk, just download # If there is no wildcard symbol like asterisk, just download
if ! is_wildcard "$MASK" || echo "$MASK" | grep -q "[?].*="; then if [ -z "$SEPMASK" ] && ! is_wildcard "$MASK" || echo "$MASK" | grep -q "[?].*="; then
sget "$1" "$TARGETFILE" sget "$1" "$TARGETFILE"
exit exit
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment