diff options
| author | OpportunityLiu <[email protected]> | 2019-06-19 12:19:26 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-06-19 12:19:26 +0800 |
| commit | ec47d59df254531303c0885b1a4d8c5d35deb42c (patch) | |
| tree | d60491e53f5c2d39c1ef3ca1cbb4bb0397f6afc4 | |
| parent | 3af56e9fc4ac64992b3733d3bb4d9de25de23231 (diff) | |
fix
| -rw-r--r-- | xmake/core/base/utils.lua | 7 | ||||
| -rw-r--r-- | xmake/core/sandbox/modules/utils.lua | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/xmake/core/base/utils.lua b/xmake/core/base/utils.lua index d30ecfaa9..caa633c7c 100644 --- a/xmake/core/base/utils.lua +++ b/xmake/core/base/utils.lua @@ -28,9 +28,12 @@ local string = require("base/string") local log = require("base/log") local dump = require("base/dump") +-- dump value function utils.dump(value, indent) - dump(value, indent or "") - io.write("\n") + if not option.get("quiet") then + dump(value, indent or "") + io.write("\n") + end end -- print string with newline diff --git a/xmake/core/sandbox/modules/utils.lua b/xmake/core/sandbox/modules/utils.lua index 5aac47a3c..7e3129fcb 100644 --- a/xmake/core/sandbox/modules/utils.lua +++ b/xmake/core/sandbox/modules/utils.lua @@ -190,9 +190,7 @@ end -- dump value function sandbox_utils.dump(value, indent) - if not option.get("quiet") then - return utils.dump(value, indent) - end + return utils.dump(value, indent) end -- return module |
