From c0f1263d7858355db625e9ea4627ce105a9c5b5b Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Mon, 26 Jun 2023 13:46:08 +0200 Subject: [PATCH] Fix package archive script Signed-off-by: Evan Lezar --- scripts/archive-packages.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/archive-packages.sh b/scripts/archive-packages.sh index 5cbb5585..01e19035 100755 --- a/scripts/archive-packages.sh +++ b/scripts/archive-packages.sh @@ -17,7 +17,10 @@ function assert_usage() { echo "Incorrect arguments: $*" - echo "$(basename ${BASH_SOURCE[0]}) ARTIFACTORY_REPO GIT_REFERENCE" + echo "$(basename ${BASH_SOURCE[0]}) ARTIFACTORY_REPO [GIT_REFERENCE]" + echo " ARTIFACTORY_REPO: URL to Artifactory repository" + echo " GIT_REFERENCE: Git reference to use for the package version" + echo " (if not specified, PACKAGE_IMAGE_TAG must be set)" exit 1 } @@ -26,7 +29,7 @@ set -e SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../scripts && pwd )" PROJECT_ROOT="$( cd ${SCRIPTS_DIR}/.. && pwd )" -if [[ $# -le 1 ]]; then +if [[ $# -lt 1 ]]; then assert_usage "$@" fi