mirror of
https://github.com/knadh/listmonk.git
synced 2025-10-05 12:57:37 +08:00
Merge pull request #423 from mr-karan/install_fix
fix colorized output in terminal
This commit is contained in:
commit
b7a25e5a32
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ GREEN="$(tput setaf 2 2>/dev/null || printf '')"
|
||||||
NO_COLOR="$(tput sgr0 2>/dev/null || printf '')"
|
NO_COLOR="$(tput sgr0 2>/dev/null || printf '')"
|
||||||
|
|
||||||
info() {
|
info() {
|
||||||
printf '%s\n' "${BLUE}>${NO_COLOR} $*"
|
printf '%s\n' "${BLUE}> ${NO_COLOR} $*"
|
||||||
}
|
}
|
||||||
|
|
||||||
error() {
|
error() {
|
||||||
|
@ -20,7 +20,7 @@ error() {
|
||||||
}
|
}
|
||||||
|
|
||||||
completed() {
|
completed() {
|
||||||
printf '%s\n' "${GREEN}✓${GREEN} $*"
|
printf '%s\n' "${GREEN}✓ ${NO_COLOR} $*"
|
||||||
}
|
}
|
||||||
|
|
||||||
exists() {
|
exists() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue