aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-04-21 10:54:42 -0400
committerAdam Harrison <adamdharrison@gmail.com>2024-04-21 10:54:42 -0400
commit75b098f80d069657885df322d5fc63b83a58aaa7 (patch)
tree7cfe59e06cbb149f675c0ce1fba6460ace664050 /src/lpm.lua
parent9f5e1a5e80cd8378882cb914f7964ef44d1c92b0 (diff)
downloadlite-xl-plugin-manager-75b098f80d069657885df322d5fc63b83a58aaa7.tar.gz
lite-xl-plugin-manager-75b098f80d069657885df322d5fc63b83a58aaa7.zip
Fixed issue with SHOULD_COLOR being set to nil, rather than false.
Diffstat (limited to 'src/lpm.lua')
-rw-r--r--src/lpm.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index 354a3fe..8cdcaf2 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -534,7 +534,7 @@ end
global({
LATEST_MOD_VERSION = "3.0.0",
EXECUTABLE_EXTENSION = PLATFORM == "windows" and ".exe" or "",
- SHOULD_COLOR = (PLATFORM == "windows" or (os.getenv("TERM") and os.getenv("TERM") ~= "dumb")) and not os.getenv("NO_COLOR")
+ SHOULD_COLOR = ((PLATFORM == "windows" or (os.getenv("TERM") and os.getenv("TERM") ~= "dumb")) and not os.getenv("NO_COLOR")) or false
})
global({ "HOME", "USERDIR", "CACHEDIR", "JSON", "TABLE", "HEADER", "RAW", "VERBOSE", "FILTRATION", "MOD_VERSION", "QUIET", "FORCE", "REINSTALL", "CONFIG", "NO_COLOR", "AUTO_PULL_REMOTES", "ARCH", "ASSUME_YES", "NO_INSTALL_OPTIONAL", "TMPDIR", "DATADIR", "BINARY", "POST", "PROGRESS", "SYMLINK", "REPOSITORY", "EPHEMERAL", "MASK", "settings", "repositories", "lite_xls", "system_bottle", "progress_bar_label", "write_progress_bar" })
global({ Addon = {}, Repository = {}, LiteXL = {}, Bottle = {}, lpm = {}, log = {} })