Update debug mode detection

This commit is contained in:
JeremyStar™ 2024-03-10 22:26:57 +01:00
parent 0107e4b819
commit 346e0fae5a

View file

@ -58,6 +58,11 @@ special " _/ |___/\\__|_| |_| |_| |_|\\_\\___|_| |_| |_|\\___|_| \\___
special "|__/ |_|" special "|__/ |_|"
empty empty
# Print debug info warning
if [ -n "${BUILDTOOL_DEBUG}" ]; then
warnh "Debug mode is enabled"
fi
# Checks # Checks
## Check for Arch Linux ## Check for Arch Linux
( (
@ -357,7 +362,7 @@ fi
cd "${BUILDTOOL_CLONEDIR}" cd "${BUILDTOOL_CLONEDIR}"
# Print debug information # Print debug information
if [ "${BUILDTOOL_DEBUG}" == "true" ]; then if [ -n "${BUILDTOOL_DEBUG}" ]; then
infoh "Printing debug information" infoh "Printing debug information"
echo "+++ env +++" echo "+++ env +++"
env|grep "BUILDTOOL_"|sort env|grep "BUILDTOOL_"|sort