mirror of
https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git
synced 2026-06-21 00:07:16 +03:00
fix fake wget
This commit is contained in:
parent
6d27d2179a
commit
75871161ba
@ -78,9 +78,11 @@ for url; do
|
||||
esac
|
||||
done
|
||||
|
||||
host="${url#http*://}"
|
||||
host="${host%%/*}"
|
||||
path="${url#http*://$host}"
|
||||
url_no_scheme="${url#*://}"
|
||||
case "$url_no_scheme" in
|
||||
*/*) host="${url_no_scheme%%/*}"; path="/${url_no_scheme#*/}";;
|
||||
*) host="$url_no_scheme"; path=/;;
|
||||
esac
|
||||
path="${path#${WGET_STRIP_PREFIX:-/}}"
|
||||
path="${path%\?*}"
|
||||
[ -n "$WGET_HOST_LOG" ] && echo "$host" >> "$WGET_HOST_LOG"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user