From 20e289308b021429939c1697830aa6d7c4e0498e Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Wed, 9 Sep 2015 11:05:09 -0700 Subject: [PATCH] Skip repos that don't have official image tags in update-tag-details.sh --- update-tag-details.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/update-tag-details.sh b/update-tag-details.sh index 70e4dab9..d3432a8e 100755 --- a/update-tag-details.sh +++ b/update-tag-details.sh @@ -18,10 +18,14 @@ repos=( "${repos[@]%/}" ) script="$helperDir/generate-tag-details.pl" for repo in "${repos[@]}"; do echo -n "$repo ... " + IFS=$'\n' + tags=( $(bashbrew list "$repo" 2>/dev/null || true) ) + unset IFS + if [ "${#tags[@]}" -eq 0 ]; then + echo 'skipping' + continue + fi { - IFS=$'\n' - tags=( $(bashbrew list "$repo") ) - unset IFS echo "" echo echo "# Tags of \`$repo\`"