Commit c5f234a9 authored by Vitaly Lipatov's avatar Vitaly Lipatov

web: replace %20 with space after download

parent 3540783e
......@@ -15,6 +15,13 @@ download_url()
which wget >/dev/null || fatal "Can't download, wget command is missed"
# NOTE: disable cert checking
a= wget --no-check-certificate -c -t 1 -T 30 "$1"
local RET=$?
# HACK: wget replaced %20 with space after download
local NAME=$(basename $1)
local SPACEDNAME=$(basename $1 | sed -e "s/%20/ /g")
[ "$SPACEDNAME" != "$NAME" ] && mv -f "$SPACEDNAME" "$NAME"
return $RET
}
check_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