aboutsummaryrefslogtreecommitdiff
path: root/system/sysdig
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2021-07-04 16:00:02 +0200
committerHeinz Wiesinger <pprkut@slackbuilds.org>2021-07-17 21:55:21 +0200
commitc52a07c5d75453ca51f72a4c27ef398047c2b61e (patch)
tree1aeeaab2250c5322617ce0a8db9b61fb62c187d0 /system/sysdig
parentaaa0d6603ec919958cd6a5af29c8481aef012c7b (diff)
system/sysdig: Fix support for PRINT_PACKAGE_NAME
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'system/sysdig')
-rw-r--r--system/sysdig/sysdig.SlackBuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/sysdig/sysdig.SlackBuild b/system/sysdig/sysdig.SlackBuild
index 8878c88bf425..079ee00bf7ee 100644
--- a/system/sysdig/sysdig.SlackBuild
+++ b/system/sysdig/sysdig.SlackBuild
@@ -30,6 +30,9 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
+KERNEL=${KERNEL:-$(uname -r)}
+PKGVER=${VERSION}_$(echo $KERNEL | tr - _)
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@@ -42,7 +45,7 @@ fi
# 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"
+ echo "$PRGNAM-$PKGVER-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi
@@ -64,9 +67,6 @@ else
LIBDIRSUFFIX=""
fi
-KERNEL=${KERNEL:-$(uname -r)}
-PKGVER=${VERSION}_$(echo $KERNEL | tr - _)
-
set -e
rm -rf $PKG