File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export PATH="/usr/bin:/bin:/usr/sbin:/sbin:$PATH"
1010export VERSION_FLAG=https://cdn.asahilinux.org/installer/latest
1111export INSTALLER_BASE=https://cdn.asahilinux.org/installer
1212export INSTALLER_DATA=https://github.com/AsahiLinux/asahi-installer/raw/prod/data/installer_data.json
13+ export INSTALLER_DATA_ALT=https://alx.sh/installer_data.json
1314export REPO_BASE=https://cdn.asahilinux.org
1415
1516# TMP="$(mktemp -d)"
@@ -31,7 +32,12 @@ PKG="installer-$PKG_VER.tar.gz"
3132echo " Downloading..."
3233
3334curl --no-progress-meter -L -o " $PKG " " $INSTALLER_BASE /$PKG "
34- curl --no-progress-meter -L -O " $INSTALLER_DATA "
35+ if ! curl --no-progress-meter -L -O " $INSTALLER_DATA " ; then
36+ echo " Error downloading installer_data.json. GitHub might be blocked in your network."
37+ echo " Please consider using a VPN if you experience issues."
38+ echo " Trying workaround..."
39+ curl --no-progress-meter -L -O " $INSTALLER_DATA_ALT "
40+ fi
3541
3642echo " Extracting..."
3743
You can’t perform that action at this time.
0 commit comments