瀏覽代碼

Skip failing images

Tianon Gravi 7 年之前
父節點
當前提交
5e8c0264ca
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      update.sh

+ 8 - 1
update.sh

@@ -123,7 +123,14 @@ for image in "${images[@]}"; do
 		} > "$targetFile"
 
 		echo '  TAGS => generate-dockerfile-links-partial.sh "'"$repo"'"'
-		partial="$("$helperDir/generate-dockerfile-links-partial.sh" "$repo")"
+		if ! partial="$("$helperDir/generate-dockerfile-links-partial.sh" "$repo")"; then
+			{
+				echo
+				echo "WARNING: failed to fetch tags for '$repo'; skipping!"
+				echo
+			} >&2
+			continue
+		fi
 		if [ -z "$partial" ]; then
 			if [ -n "$ARCH_SPECIFIC_DOCS" ]; then
 				partial='**No supported tags found!**'$'\n\n''It is very likely that `%%REPO%%` does not support the currently selected architecture (`'"$BASHBREW_ARCH"'`).'