diff --git a/wait_for_launcher_dl.sh b/wait_for_launcher_dl.sh index 0320595..4b3e552 100755 --- a/wait_for_launcher_dl.sh +++ b/wait_for_launcher_dl.sh @@ -6,14 +6,14 @@ if [ -z "$1" ]; then exit 1 fi -url="https://github.com/R2Northstar/NorthstarLauncher/releases/tag/$1" +url="https://github.com/R2Northstar/NorthstarLauncher/releases/download/$1/northstar-launcher.zip" wait_time_seconds=60 # Loop until the response code changes while true; do response=$(curl --silent --output /dev/null --write-out "%{http_code}" $url) - if [ $response -ne 200 ]; then - echo "Response is not 200. Retrying in $wait_time_seconds seconds." + if [ $response -eq 404 ]; then + echo "Response is 404. Retrying in $wait_time_seconds seconds." sleep $wait_time_seconds else echo "Site is accessible with response code $response."