From de4da69825fd557298b03f33124f4d04fe539c21 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 14 Feb 2023 02:42:39 -0500 Subject: network/pulse-sms: Fix PRINT_PACKAGE_NAME. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- network/pulse-sms/pulse-sms.SlackBuild | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'network') diff --git a/network/pulse-sms/pulse-sms.SlackBuild b/network/pulse-sms/pulse-sms.SlackBuild index cee263b29c..a7b99df6f1 100644 --- a/network/pulse-sms/pulse-sms.SlackBuild +++ b/network/pulse-sms/pulse-sms.SlackBuild @@ -30,14 +30,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} @@ -46,6 +38,11 @@ if [ -z "$ARCH" ]; then ARCH=$( uname -m ) fi +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + # Upstream only has binary support for x86_64 at present. if [ "$ARCH" = "x86_64" ]; then DEBARCH="amd64" -- cgit v1.2.3