Skip repos that don't have official image tags in update-tag-details.sh
This commit is contained in:
parent
f238f110b6
commit
20e289308b
|
|
@ -18,10 +18,14 @@ repos=( "${repos[@]%/}" )
|
||||||
script="$helperDir/generate-tag-details.pl"
|
script="$helperDir/generate-tag-details.pl"
|
||||||
for repo in "${repos[@]}"; do
|
for repo in "${repos[@]}"; do
|
||||||
echo -n "$repo ... "
|
echo -n "$repo ... "
|
||||||
{
|
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
tags=( $(bashbrew list "$repo") )
|
tags=( $(bashbrew list "$repo" 2>/dev/null || true) )
|
||||||
unset IFS
|
unset IFS
|
||||||
|
if [ "${#tags[@]}" -eq 0 ]; then
|
||||||
|
echo 'skipping'
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
{
|
||||||
echo "<!-- THIS FILE IS GENERATED VIA '$script' -->"
|
echo "<!-- THIS FILE IS GENERATED VIA '$script' -->"
|
||||||
echo
|
echo
|
||||||
echo "# Tags of \`$repo\`"
|
echo "# Tags of \`$repo\`"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue