summaryrefslogtreecommitdiffstats
path: root/development/highlight
diff options
context:
space:
mode:
author Ozan Türkyılmaz2022-09-22 16:29:58 +0200
committer Willy Sudiarto Raharjo2022-09-22 18:35:31 +0200
commit285b7ce913639f513e11b8c16f25a772b6b5c5ae (patch)
tree21f1c79f0a034fe852f60437e1db7df769a806fb /development/highlight
parentfb0f3e6cc3d27f4183136d58fd3159e113de4515 (diff)
downloadslackbuilds-285b7ce913639f513e11b8c16f25a772b6b5c5ae.tar.gz
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.SlackBuild16
1 files changed, 8 insertions, 8 deletions
diff --git a/development/highlight/highlight.SlackBuild b/development/highlight/highlight.SlackBuild
index e96bdc82e6..f680aca326 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