Skip to content

Commit

Permalink
Apply comments made on the original PR #4438
Browse files Browse the repository at this point in the history
  • Loading branch information
jbartosik authored and mrueg committed Mar 17, 2023
1 parent 652fd6f commit de9e9ea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions registry.k8s.io/images/k8s-staging-autoscaling/add-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
# empty diff in such a case.
# NOTE: Only modifies local files, does not create a PR.

if [ "$2". == . ] || [ "$3". != . ]
set +o errexit
set -o pipefail

if [ $# -ne 2 ]
then
echo "Usage: $0 <component name> <version tag>"
echo "example usages:"
Expand All @@ -34,7 +37,6 @@ COMPONENT="$1"
VERSION="$2"

component_len=${#COMPONENT}
should_read=1

function emit_new_sha {
sha=$(gcloud container images describe "gcr.io/k8s-staging-autoscaling/${component}:${VERSION}" '--format=value(image_summary.digest)' 2>/dev/null)
Expand Down Expand Up @@ -83,6 +85,8 @@ function handle_component {
fi
}

should_read=1

while true
do
if [ "$should_read" -gt 0 ]
Expand Down

0 comments on commit de9e9ea

Please sign in to comment.