Skip to content

Commit

Permalink
Fixed issue with SHOULD_COLOR being set to nil, rather than false.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamharrison committed Apr 21, 2024
1 parent 9f5e1a5 commit 75b098f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lpm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {} })
Expand Down

0 comments on commit 75b098f

Please sign in to comment.