Explorar o código

fix colorized output in terminal

Closes https://github.com/knadh/listmonk/issues/422
Karan Sharma %!s(int64=4) %!d(string=hai) anos
pai
achega
4d8e73b654
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      install-prod.sh

+ 2 - 2
install-prod.sh

@@ -12,7 +12,7 @@ GREEN="$(tput setaf 2 2>/dev/null || printf '')"
 NO_COLOR="$(tput sgr0 2>/dev/null || printf '')"
 
 info() {
-  printf '%s\n' "${BLUE}>${NO_COLOR} $*"
+  printf '%s\n' "${BLUE}> ${NO_COLOR} $*"
 }
 
 error() {
@@ -20,7 +20,7 @@ error() {
 }
 
 completed() {
-  printf '%s\n' "${GREEN}✓${GREEN} $*"
+  printf '%s\n' "${GREEN}✓ ${NO_COLOR} $*"
 }
 
 exists() {