Commit bc18d665 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: fix list for direct URL without mask

parent 15dafcc7
......@@ -544,6 +544,14 @@ if echo "$URL" | grep -q "^ftp://" ; then
fi
if [ -n "$LISTONLY" ] ; then
for fn in $(get_urls | filter_glob "$MASK" | filter_order) ; do
is_url "$fn" && echo "$fn" && continue
make_fileurl "$URL" "$fn"
done
exit
fi
# If there is no wildcard symbol like asterisk, just download
if echo "$MASK" | grep -qv "[*?]" || echo "$MASK" | grep -q "[?].*="; then
if is_fileurl "$1" ; then
......@@ -554,15 +562,6 @@ if echo "$MASK" | grep -qv "[*?]" || echo "$MASK" | grep -q "[?].*="; then
exit
fi
if [ -n "$LISTONLY" ] ; then
for fn in $(get_urls | filter_glob "$MASK" | filter_order) ; do
is_url "$fn" && echo "$fn" && continue
make_fileurl "$URL" "$fn"
done
exit
fi
ERROR=0
for fn in $(get_urls | filter_glob "$MASK" | filter_order) ; do
is_url "$fn" || fn="$(make_fileurl "$URL" "$fn" )" #"
......
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