build.sh: fix remove known-broken images after the build
(cherry picked from commit 74088a18a9
)
This commit is contained in:
parent
e963dd306e
commit
ced245aea5
1 changed files with 1 additions and 1 deletions
2
build.sh
2
build.sh
|
@ -111,7 +111,7 @@ done
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
for broken_image in "${broken_images[@]}"; do
|
for broken_image in "${broken_images[@]}"; do
|
||||||
announce "Removing broken image ${broken_image}..."
|
announce "Removing broken image ${broken_image}..."
|
||||||
find "${GLUON_OUTPUTDIR}/${GLUON_BRANCH}/images" -iname "${broken_image}" \( -type f -o -type l \) -ls -exec rm -f {} \;
|
find "${GLUON_OUTPUTDIR}/images" -iname "${broken_image}" \( -type f -o -type l \) -ls -exec rm -f {} \;
|
||||||
done
|
done
|
||||||
# Generate the images.list
|
# Generate the images.list
|
||||||
( cd "${GLUON_OUTPUTDIR}/images" && ( find -type f ! -iname '*.manifest' ! -iname images.list; find -type l ! -iname '*.manifest' ) | sed -e 's!^\./\(.*\)$!\1!' -e 's!/! !g' | sort > images.list )
|
( cd "${GLUON_OUTPUTDIR}/images" && ( find -type f ! -iname '*.manifest' ! -iname images.list; find -type l ! -iname '*.manifest' ) | sed -e 's!^\./\(.*\)$!\1!' -e 's!/! !g' | sort > images.list )
|
||||||
|
|
Loading…
Reference in a new issue