refactor: Remove wget fallbacks

This commit is contained in:
2026-06-21 12:54:45 +05:30
parent 3df936d501
commit b8862b925e
17 changed files with 71 additions and 244 deletions

View File

@@ -18,7 +18,7 @@ if [ -f "$version_file" ]; then
fi
base_url="https://git.adityagupta.dev/sortedcord/bootstrap/raw/branch/master"
remote_ver=$(curl -fsSL "$base_url/VERSION" 2>/dev/null || wget -qO- "$base_url/VERSION" 2>/dev/null)
remote_ver=$(curl -fsSL "$base_url/VERSION" 2>/dev/null)
remote_ver=$(echo "$remote_ver" | tr -d '[:space:]')
if [ -z "$remote_ver" ]; then
@@ -59,7 +59,7 @@ if version_lt "$local_ver" "$remote_ver" || [ "$force_update" = true ]; then
fi
tmp_bootstrap="$(mktemp)"
if curl -fsSL "$base_url/bootstrap.sh" -o "$tmp_bootstrap" || wget -qO "$tmp_bootstrap" "$base_url/bootstrap.sh"; then
if curl -fsSL "$base_url/bootstrap.sh" -o "$tmp_bootstrap"; then
# Run bootstrap.sh in foreground
if bash "$tmp_bootstrap"; then
# Update the last update timestamp