Skip to content

Commit d6d2dfe

Browse files
committed
Use dl link instead of release page in wait script
Use the download link instead of the release link in wait script as release link becomes valid on tag creation before download is ready.
1 parent c829a40 commit d6d2dfe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wait_for_launcher_dl.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ if [ -z "$1" ]; then
66
exit 1
77
fi
88

9-
url="https://github.com/R2Northstar/NorthstarLauncher/releases/tag/$1"
9+
url="https://github.com/R2Northstar/NorthstarLauncher/releases/download/$1/northstar-launcher.zip"
1010
wait_time_seconds=60
1111

1212
# Loop until the response code changes
1313
while true; do
1414
response=$(curl --silent --output /dev/null --write-out "%{http_code}" $url)
15-
if [ $response -ne 200 ]; then
16-
echo "Response is not 200. Retrying in $wait_time_seconds seconds."
15+
if [ $response -eq 404 ]; then
16+
echo "Response is 404. Retrying in $wait_time_seconds seconds."
1717
sleep $wait_time_seconds
1818
else
1919
echo "Site is accessible with response code $response."

0 commit comments

Comments
 (0)