aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2021-07-04 15:59:54 +0200
committerHeinz Wiesinger <pprkut@slackbuilds.org>2021-07-17 21:55:16 +0200
commitd6d7dcc7494356f26fb7dbf5020a0f8acc486f08 (patch)
tree32447d796ef091ebf2311eff3e4d12ee5207b0ae /network
parent6dcded741d73ae17ffbf6bed861611e931715fba (diff)
network/mattermost-desktop: Fix support for PRINT_PACKAGE_NAME
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/mattermost-desktop/mattermost-desktop.SlackBuild24
1 files changed, 12 insertions, 12 deletions
diff --git a/network/mattermost-desktop/mattermost-desktop.SlackBuild b/network/mattermost-desktop/mattermost-desktop.SlackBuild
index 623bd9770e948..5be45164adc52 100644
--- a/network/mattermost-desktop/mattermost-desktop.SlackBuild
+++ b/network/mattermost-desktop/mattermost-desktop.SlackBuild
@@ -38,18 +38,6 @@ 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
-
-TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
-
if [ "$ARCH" = "x86_64" ]; then
SRCARCH="x64"
PKGARCH="$ARCH"
@@ -61,6 +49,18 @@ else
exit 1
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-$PKGARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
set -e
rm -rf $PKG