Commit 15dafcc7 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: fix direct copy to the current dir

parent 028f01a3
...@@ -547,7 +547,7 @@ fi ...@@ -547,7 +547,7 @@ fi
# If there is no wildcard symbol like asterisk, just download # If there is no wildcard symbol like asterisk, just download
if echo "$MASK" | grep -qv "[*?]" || echo "$MASK" | grep -q "[?].*="; then if echo "$MASK" | grep -qv "[*?]" || echo "$MASK" | grep -q "[?].*="; then
if is_fileurl "$1" ; then if is_fileurl "$1" ; then
cp -v "$(dir_from_url)" "$TARGEFILE" sget "$(dir_from_url "$1")" "$TARGEFILE"
exit exit
fi fi
sget "$1" "$TARGETFILE" sget "$1" "$TARGETFILE"
......
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