From e6a9341ecacbfc37e68359ffd55dfca3477d4ee9 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 14 Feb 2023 02:52:21 -0500 Subject: system/ttf-bitstream-vera: Fix PRINT_PACKAGE_NAME. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- system/ttf-bitstream-vera/ttf-bitstream-vera.SlackBuild | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/system/ttf-bitstream-vera/ttf-bitstream-vera.SlackBuild b/system/ttf-bitstream-vera/ttf-bitstream-vera.SlackBuild index f7fc1aa2d8cbe..f43744a6932e9 100644 --- a/system/ttf-bitstream-vera/ttf-bitstream-vera.SlackBuild +++ b/system/ttf-bitstream-vera/ttf-bitstream-vera.SlackBuild @@ -30,20 +30,17 @@ 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} ARCH=noarch # they're fonts, dummy +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + set -eu rm -rf $PKG -- cgit v1.2.3