diff options
author | B. Watson <urchlay@slackware.uk> | 2023-02-14 02:42:39 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-02-18 10:07:09 +0700 |
commit | de4da69825fd557298b03f33124f4d04fe539c21 (patch) | |
tree | 067d99ebda252745f1f9c258c5bb7e48a264c988 /network/pulse-sms | |
parent | ff9f760c1b4eed386655e16e2dc051303cb1d61a (diff) |
network/pulse-sms: Fix PRINT_PACKAGE_NAME.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/pulse-sms')
-rw-r--r-- | network/pulse-sms/pulse-sms.SlackBuild | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/network/pulse-sms/pulse-sms.SlackBuild b/network/pulse-sms/pulse-sms.SlackBuild index cee263b29c73e..a7b99df6f1260 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" |