diff options
author | B. Watson <urchlay@slackware.uk> | 2023-02-14 01:42:30 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-02-18 10:07:01 +0700 |
commit | f3675d6989b88a0c3249a049d1d2af090ea62af4 (patch) | |
tree | 3b2f5cf90a0d9a189113c5223617dad4258eec16 /development | |
parent | 49d0dbfc6c576b1705b0567476aac7be8035ff60 (diff) |
development/github-cli: Fix PRINT_PACKAGE_NAME.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r-- | development/github-cli/github-cli.SlackBuild | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/development/github-cli/github-cli.SlackBuild b/development/github-cli/github-cli.SlackBuild index e009e560d1832..59b33466b9d5c 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 |