core.ps1: Use "debug" config value instead of $env:SCOOP_DEBUG

This commit is contained in:
Richard Kuhnt
2019-02-03 17:54:58 +01:00
parent 7ba87d5aea
commit 146e309df8
+1 -1
View File
@@ -61,7 +61,7 @@ function error($msg) { write-host "ERROR $msg" -f darkred }
function warn($msg) { write-host "WARN $msg" -f darkyellow }
function info($msg) { write-host "INFO $msg" -f darkgray }
function debug($obj) {
if($env:SCOOP_DEBUG -ine 'true') {
if((get_config 'debug' $false) -ine 'true') {
return
}