From f3675d6989b88a0c3249a049d1d2af090ea62af4 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 14 Feb 2023 01:42:30 -0500 Subject: development/github-cli: Fix PRINT_PACKAGE_NAME. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- development/github-cli/github-cli.SlackBuild | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/development/github-cli/github-cli.SlackBuild b/development/github-cli/github-cli.SlackBuild index e009e560d1..59b33466b9 100644 --- a/development/github-cli/github-cli.SlackBuild +++ b/development/github-cli/github-cli.SlackBuild @@ -31,14 +31,6 @@ BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" - exit 0 -fi - TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -53,6 +45,11 @@ else DEBARCH="386" fi +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + set -e rm -rf $PKG -- cgit v1.2.3-80-g2a13