Commit 3aef11fb authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: fix regex in make_fileurl() for leading slashes

parent fd6f9b46
...@@ -1767,7 +1767,7 @@ make_fileurl() ...@@ -1767,7 +1767,7 @@ make_fileurl()
local url="$1" local url="$1"
local fn="$2" local fn="$2"
fn="$(echo "$fn" | sed -e 's|^./||' -e 's|^/+||')" fn="$(echo "$fn" | sed -e 's|^./||' -e 's|^/*||')"
if is_fileurl "$url" ; then if is_fileurl "$url" ; then
# if it is url # if it is 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