1
mirror of https://github.com/R2Northstar/Northstar synced 2025-09-18 19:30:50 +02:00

Compare commits

...

1 Commits

Author SHA1 Message Date
GeckoEidechse
9b77206591 feat: Add debug prints to wait script 2023-11-02 16:35:53 +01:00

View File

@@ -9,9 +9,12 @@ fi
url="https://github.com/R2Northstar/NorthstarLauncher/releases/download/$1/northstar-launcher.zip"
wait_time_seconds=60
echo "Checking $url"
# Loop until the response code changes
while true; do
response=$(curl --silent --output /dev/null --write-out "%{http_code}" $url)
echo "Got response $response"
if [ $response -eq 404 ]; then
echo "Response is 404. Retrying in $wait_time_seconds seconds."
sleep $wait_time_seconds