From 2cf5cd97eaecefebeb1e16ab65907f517f341b0d Mon Sep 17 00:00:00 2001 From: fmacleal <157636304+fmacleal@users.noreply.github.com> Date: Mon, 22 Jul 2024 16:25:49 +0200 Subject: [PATCH] Update container-action/scripts/configure_rit_locally.sh Applying suggestions from review Co-authored-by: Lucas <39061310+lucasvuotto@users.noreply.github.com> --- container-action/scripts/configure_rit_locally.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/container-action/scripts/configure_rit_locally.sh b/container-action/scripts/configure_rit_locally.sh index 63308bd0..5afc0687 100755 --- a/container-action/scripts/configure_rit_locally.sh +++ b/container-action/scripts/configure_rit_locally.sh @@ -1,6 +1,11 @@ #!/bin/bash -POWPEG_VERSION="${1:-SNAPSHOT-6.3.0.0}" +if [ $# -ne 1 ] || [ -z "${1:-}" ]; then + echo "Usage: ${0##*/} POWPEG_VERSION" >&2 + exit 1 +fi +POWPEG_VERSION=$1 +shift echo "POWPEG_VERSION received as parameter: $1" read -r -d '' SETTINGS_RIT <