mirror of
https://github.com/knadh/listmonk.git
synced 2024-09-20 07:16:33 +08:00
fix colorized output in terminal
Closes https://github.com/knadh/listmonk/issues/422
This commit is contained in:
parent
9e61bfc5df
commit
4d8e73b654
|
@ -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…
Reference in a new issue