diff options
author | Ozan Türkyılmaz <ozan.turkyilmaz@gmail.com> | 2022-09-22 17:29:58 +0300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-09-22 23:35:31 +0700 |
commit | 285b7ce913639f513e11b8c16f25a772b6b5c5ae (patch) | |
tree | 21f1c79f0a034fe852f60437e1db7df769a806fb /development/highlight | |
parent | fb0f3e6cc3d27f4183136d58fd3159e113de4515 (diff) |
development/highlight Fix PRINT_PACKAGE_NAME bug
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/highlight')
-rw-r--r-- | development/highlight/highlight.SlackBuild | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/development/highlight/highlight.SlackBuild b/development/highlight/highlight.SlackBuild index e96bdc82e6731..f680aca326d91 100644 --- a/development/highlight/highlight.SlackBuild +++ b/development/highlight/highlight.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} @@ -50,6 +42,14 @@ if [ -z "$ARCH" ]; then esac fi +# 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 + set -ue rm -rf $PKG |