summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
author Jay Lanagan2024-02-29 11:23:08 +0100
committer Willy Sudiarto Raharjo2024-02-29 12:57:28 +0100
commit6ec3ab835923bcaac503438c92e48178508afa76 (patch)
tree789d91364042d18a6f0b257b0add7c1eb39b50df /system
parentb4e2527b79bda636c8bba63b846c3e9250c8e0b5 (diff)
downloadslackbuilds-6ec3ab835923bcaac503438c92e48178508afa76.tar.gz
system/greetd: Fixed SlackBuild $PRINT_PACKAGE_NAME.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/greetd/greetd.SlackBuild13
1 files changed, 5 insertions, 8 deletions
diff --git a/system/greetd/greetd.SlackBuild b/system/greetd/greetd.SlackBuild
index 4d62b0f346..6930e89311 100644
--- a/system/greetd/greetd.SlackBuild
+++ b/system/greetd/greetd.SlackBuild
@@ -40,6 +40,11 @@ if [ -z "$ARCH" ]; then
esac
fi
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
bailout() {
printf "This requires a \"greeter\" user and group.\n"
printf "groupadd -g 381 greeter\n"
@@ -53,14 +58,6 @@ elif ! getent passwd $PRGUID 2>/dev/null 1>/dev/null ; then
bailout
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}