Commit a53b7114 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: always use filter for separated mask

parent c4535a49
......@@ -1457,6 +1457,7 @@ fi
if [ -n "$2" ] ; then
URL="$1"
MASK="$2"
SEPMASK="$2"
else
if have_end_slash "$1" ; then
URL="$1"
......@@ -1503,7 +1504,7 @@ is_wildcard()
}
# 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"
exit
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