From 177de76b16ed421bba9222f1f548967ded2c9d4c Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Mon, 11 Mar 2024 17:09:33 +0100 Subject: [PATCH] Update buildtool.sh --- buildtool.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/buildtool.sh b/buildtool.sh index 0952ac9..d4a8956 100755 --- a/buildtool.sh +++ b/buildtool.sh @@ -75,8 +75,12 @@ special "|__/ |_|" empty # Print environment configuration -diagh "\$BUILDTOOL_DEBUG is set, debug mode is enabled" -diagh "\$BUILDTOOL_LOCALDIR is set, will build kernel package from current working directory" +if [ -n "${BUILDTOOL_DEBUG}" ]; then + warnh "\$BUILDTOOL_DEBUG is set, debug mode is enabled" +fi +if [ -n "${BUILDTOOL_LOCALDIR}" ]; then + warnh "\$BUILDTOOL_LOCALDIR is set, will build kernel package from current working directory" +fi # Checks ## Check for Arch Linux