From 346e0fae5a417415a675737f729a4c4bca9b3097 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 10 Mar 2024 22:26:57 +0100 Subject: [PATCH] Update debug mode detection --- buildtool.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/buildtool.sh b/buildtool.sh index 71b20a1..5f99200 100755 --- a/buildtool.sh +++ b/buildtool.sh @@ -58,6 +58,11 @@ special " _/ |___/\\__|_| |_| |_| |_|\\_\\___|_| |_| |_|\\___|_| \\___ special "|__/ |_|" empty +# Print debug info warning +if [ -n "${BUILDTOOL_DEBUG}" ]; then + warnh "Debug mode is enabled" +fi + # Checks ## Check for Arch Linux ( @@ -357,7 +362,7 @@ fi cd "${BUILDTOOL_CLONEDIR}" # Print debug information -if [ "${BUILDTOOL_DEBUG}" == "true" ]; then +if [ -n "${BUILDTOOL_DEBUG}" ]; then infoh "Printing debug information" echo "+++ env +++" env|grep "BUILDTOOL_"|sort