From a6f52ebb1744c1c36302c1cd244483ea55bc1ca9 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Tue, 13 Jun 2023 11:25:21 -0400 Subject: Fixed term env. --- src/lpm.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lpm.lua b/src/lpm.lua index 02e5c6f..0fce4f7 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -489,7 +489,7 @@ local colors = { } local TERM = os.getenv("TERM") local function colorize(text, color) - if TERM and not TTY or NO_COLOR or not color then return text end + if not TERM or not TTY or NO_COLOR or not color then return text end return "\x1B[" .. colors[color] .. "m" .. text .. "\x1B[0m" end @@ -1868,6 +1868,7 @@ Usage: lpm COMMAND [...ARGUMENTS] [--json] [--userdir=directory] [--ssl-certs=directory/file] [--force] [--arch=]] .. _G.ARCH .. [[] [--assume-yes] [--no-install-optional] [--verbose] [--mod-version=3] [--datadir=directory] [--binary=path] [--symlink] [--post] [--reinstall] + [--no-color] LPM is a package manager for `lite-xl`, written in C (and packed-in lua). -- cgit v1.2.3