mirror of
https://github.com/lloeki/apply.git
synced 2025-12-06 09:24:38 +01:00
run: get colors working with no $TERM variable
This commit is contained in:
parent
abadaf92ea
commit
a243a9a9c0
1 changed files with 5 additions and 5 deletions
10
run
10
run
|
|
@ -3,11 +3,11 @@
|
|||
set -e
|
||||
set -u
|
||||
|
||||
RED="$(tput setaf 1)"
|
||||
GREEN="$(tput setaf 2)"
|
||||
YELLOW="$(tput setaf 3)"
|
||||
BLUE="$(tput setaf 4)"
|
||||
RESET="$(tput sgr0)"
|
||||
RED="$(printf "\033[31m")" # "$(tput setaf 1)"
|
||||
GREEN="$(printf "\033[32m")" # "$(tput setaf 2)"
|
||||
YELLOW="$(printf "\033[33m")" # "$(tput setaf 3)"
|
||||
BLUE="$(printf "\033[34m")" # "$(tput setaf 4)"
|
||||
RESET="$(printf "\033[0m")" # "$(tput sgr0)"
|
||||
|
||||
usage() {
|
||||
echo "usage: $(basename "$0") [-v] <target> [<target>...]"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue