mirror of
https://github.com/R2Northstar/Northstar
synced 2026-08-23 20:23:04 -04:00
feat: Add debug prints to wait script
This commit is contained in:
parent
de87f41b45
commit
9b77206591
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue