Commit 7f340d2d authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: add MADEURL as flag it is the end of of the URL

parent 6644f4ac
......@@ -958,6 +958,9 @@ concatenate_url_and_filename()
echo "$(echo "$url" | sed -e 's|/*$||' )/$fn"
}
# MADEURL filled with latest made URL as flag it is end form of URL
MADEURL=''
# Args: URL filename
make_fileurl()
{
......@@ -977,7 +980,8 @@ make_fileurl()
url="$(dirname "$url")"
fi
concatenate_url_and_filename "$url" "$fn"
MADEURL="$(concatenate_url_and_filename "$url" "$fn")"
echo "$MADEURL"
}
get_urls()
......@@ -1017,6 +1021,7 @@ if echo "$1" | grep -q "^https://github.com/" && \
ERROR=0
for fn in $(get_github_urls "$1" | filter_glob "$MASK" | filter_order) ; do
MADEURL="$fn" # mark it is the end form of the URL
sget "$fn" "$TARGETFILE" || ERROR=1
[ -n "$TARGETFILE" ] && [ "$ERROR" = "0" ] && break
done
......
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