Commit 72e6b470 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: fix concatenate_url_and_filename()

parent 66bece27
...@@ -1272,10 +1272,9 @@ get_host_only() ...@@ -1272,10 +1272,9 @@ get_host_only()
concatenate_url_and_filename() concatenate_url_and_filename()
{ {
local url="$1" local url="$(echo "$1" | sed -e 's|/*$||' )"
local fn="$2" local fn="$(echo "$2" | sed -e 's|^/*||' )"
# workaround for a slash in the end of URL echo "$url/$fn"
echo "$(echo "$url" | sed -e 's|/*$||' )/$fn"
} }
# MADEURL filled with latest made URL as flag it is end form of URL # MADEURL filled with latest made URL as flag it is end form of URL
......
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