From 28cf20c3741336e9089aa2102d632b303140e3b3 Mon Sep 17 00:00:00 2001 From: Jack Smith Date: Fri, 8 Jul 2022 12:13:32 +0100 Subject: [PATCH] Fixing rpm package name --- scripts/compute_package_name.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/compute_package_name.sh b/scripts/compute_package_name.sh index 7e53a1351f..0a81ffb2f7 100755 --- a/scripts/compute_package_name.sh +++ b/scripts/compute_package_name.sh @@ -10,14 +10,12 @@ CHANNEL=${1:-stable} NAME=${2:-algorand} -if [ ! -z ${PACKAGE_NAME_EXTENSION} ]; then +if [ -n "${PACKAGE_NAME_EXTENSION}" ]; then NAME="${NAME}-${PACKAGE_NAME_EXTENSION}" fi -if [ "$CHANNEL" = beta ]; then - echo "$NAME-beta" -elif [ "$CHANNEL" = nightly ]; then - echo "$NAME-nightly" -else +if [ "$CHANNEL" = stable ]; then echo "$NAME" +else + echo "$NAME-$CHANNEL" fi