From 146e309df87f196beaa255ccc4ad050d995cf171 Mon Sep 17 00:00:00 2001 From: Richard Kuhnt Date: Sun, 3 Feb 2019 17:54:58 +0100 Subject: [PATCH] core.ps1: Use "debug" config value instead of $env:SCOOP_DEBUG --- lib/core.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core.ps1 b/lib/core.ps1 index 60f00651b..47322ad78 100644 --- a/lib/core.ps1 +++ b/lib/core.ps1 @@ -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 }