Try generating tag list before generating file (so that we don't create a README file with template placeholders in it)
This commit is contained in:
parent
5e8c0264ca
commit
d6c1f03ae0
17
update.sh
17
update.sh
|
|
@ -113,6 +113,15 @@ for image in "${images[@]}"; do
|
||||||
echo ' GIT PREFETCH => "'"$repo"'"'
|
echo ' GIT PREFETCH => "'"$repo"'"'
|
||||||
"$helperDir/git-prefetch.sh" "$repo"
|
"$helperDir/git-prefetch.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
|
||||||
|
|
||||||
targetFile="$repo/README.md"
|
targetFile="$repo/README.md"
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
@ -123,14 +132,6 @@ for image in "${images[@]}"; do
|
||||||
} > "$targetFile"
|
} > "$targetFile"
|
||||||
|
|
||||||
echo ' TAGS => generate-dockerfile-links-partial.sh "'"$repo"'"'
|
echo ' TAGS => 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 [ -z "$partial" ]; then
|
||||||
if [ -n "$ARCH_SPECIFIC_DOCS" ]; 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"'`).'
|
partial='**No supported tags found!**'$'\n\n''It is very likely that `%%REPO%%` does not support the currently selected architecture (`'"$BASHBREW_ARCH"'`).'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue