Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

fix: preserve installer download URL

Salman Qureshi9707fc7a0e52
diff --git a/docs/install.sh b/docs/install.sh
index 41ad9fd4..299ac5cd 100644
--- a/docs/install.sh
+++ b/docs/install.sh
@@ -57,11 +57,10 @@ detect_arch() {
# Fetch a URL to a file path.
fetch_to() {
- url=$1; out=$2
if have curl; then
- curl -fsSL --output "$out" "$url"
+ curl -fsSL --output "$2" "$1"
elif have wget; then
- wget -qO "$out" "$url"
+ wget -qO "$2" "$1"
else
die "Need curl or wget to download files."
fi
diff --git a/scripts/install.sh b/scripts/install.sh
index 41ad9fd4..299ac5cd 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -57,11 +57,10 @@ detect_arch() {
# Fetch a URL to a file path.
fetch_to() {
- url=$1; out=$2
if have curl; then
- curl -fsSL --output "$out" "$url"
+ curl -fsSL --output "$2" "$1"
elif have wget; then
- wget -qO "$out" "$url"
+ wget -qO "$2" "$1"
else
die "Need curl or wget to download files."
fi