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