Skip to content

Commit f03fd8e

Browse files
authored
Check for valid artifact_url in distribute-latest-toolchain.sh
1 parent bed6ea1 commit f03fd8e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

utils/webassembly/distribute-latest-toolchain.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,14 @@ get_artifact_url() {
2929

3030
download_artifact() {
3131
local name=$1
32-
github -L "$(get_artifact_url $name)" --fail -o "$name.zip"
32+
local artifact_url="$(get_artifact_url $name)"
33+
34+
if [ -z "$artifact_url" ] || [ "$artifact_url" == "null" ]; then
35+
echo "No successfully built artifacts available for $name"
36+
exit 0
37+
fi
38+
39+
github -L "$artifact_url" --fail -o "$name.zip"
3340
}
3441

3542
is_released() {

0 commit comments

Comments
 (0)