Update debug mode detection
This commit is contained in:
parent
0107e4b819
commit
346e0fae5a
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||||
|
|
Reference in a new issue