From b6b778eb4829af188616aba32218c50f9747f90a Mon Sep 17 00:00:00 2001 From: a3hadi Date: Sun, 10 Mar 2024 22:28:53 -0400 Subject: [PATCH] modify update script Signed-off-by: a3hadi --- update_examples.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/update_examples.sh b/update_examples.sh index 18712488..09b9fdbe 100755 --- a/update_examples.sh +++ b/update_examples.sh @@ -4,7 +4,7 @@ function show_help () { echo "Usage: $0 [-h|--help] (-b|--build | -c|--commit-sha )" echo " -h, --help Display help message and exit" echo " -b, --build Build the docker images of all the examples" - echo " -c, --commit-sha Update all of the examples to depend on the numaflow-go version with the specified SHA" + echo " -c, --commit-sha Update all of the examples to depend on the numaflow-go version with the specified SHA or version" } function traverse_examples () { @@ -48,7 +48,7 @@ function handle_options () { -c | --commit-sha) usingSHA=1 if [ -z "$2" ]; then - echo "Commit SHA not specified." >&2 + echo "Commit SHA or version not specified." >&2 show_help exit 1 fi @@ -75,7 +75,7 @@ if (( usingBuild + usingSHA + usingHelp > 1 )); then fi if [ -n "$commit_sha" ]; then - echo "Commit SHA specified: $commit_sha" + echo "Will update to: $commit_sha" fi if (( usingBuild )); then