fix: repair Docker installer asset fetch

This commit is contained in:
Pi Web Agent
2026-07-08 20:45:56 +00:00
parent 856ba7345b
commit 829b3508a4
3 changed files with 79 additions and 4 deletions
+6 -4
View File
@@ -231,12 +231,14 @@ dotenv_quote() {
}
fetch_url() {
url=$1
target=$2
# POSIX sh function variables are global, so keep these names distinct
# from caller state such as write_asset's target path.
fetch_url_source=$1
fetch_url_output=$2
if command -v curl >/dev/null 2>&1; then
curl -fsSL "$url" -o "$target"
curl -fsSL "$fetch_url_source" -o "$fetch_url_output"
elif command -v wget >/dev/null 2>&1; then
wget -qO "$target" "$url"
wget -qO "$fetch_url_output" "$fetch_url_source"
else
die "curl or wget is required to fetch Docker assets"
fi