Skip to content

Commit

Permalink
Fixing rpm package name
Browse files Browse the repository at this point in the history
  • Loading branch information
algojack committed Jul 8, 2022
1 parent ea5defd commit 28cf20c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions scripts/compute_package_name.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 28cf20c

Please sign in to comment.