mirror of
https://github.com/containers/podman.git
synced 2025-06-17 15:08:08 +08:00
Cirrus: Fix missing -n on CentOS
Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
@ -62,17 +62,6 @@ URI="gs://packer-import${POST_MERGE_BUCKET_SUFFIX}/manifest${BUILT_IMAGE_SUFFIX}
|
|||||||
gsutil cp packer-manifest.json "$URI"
|
gsutil cp packer-manifest.json "$URI"
|
||||||
|
|
||||||
# Ensure any background 'gcloud compute images update' processes finish
|
# Ensure any background 'gcloud compute images update' processes finish
|
||||||
set +e # need 'wait' exit code to avoid race
|
wait # CentOS has no -n option :(
|
||||||
while [[ -n "$(jobs)" ]]
|
|
||||||
do
|
|
||||||
wait -n
|
|
||||||
RET=$?
|
|
||||||
if [[ "$RET" -eq "127" ]] || \ # Avoid TOCTOU race w/ jobs + wait
|
|
||||||
[[ "$RET" -eq "0" ]]
|
|
||||||
then
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
die $RET "Required base-image metadata update failed"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "Finished. A JSON manifest of produced images is available at $URI"
|
echo "Finished. A JSON manifest of produced images is available at $URI"
|
||||||
|
Reference in New Issue
Block a user