Fix 'tput: not enough arguments (3) for capability `setaf'' warning in OpenBSD
This commit is contained in:
parent
2818337f84
commit
001cd95827
1 changed files with 8 additions and 8 deletions
|
@ -42,14 +42,14 @@ fi
|
|||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
black="$(tput setaf 0 0 0)"
|
||||
red="$(tput setaf 1 0 0)"
|
||||
green="$(tput setaf 2 0 0)"
|
||||
yellow="$(tput setaf 3 0 0)"
|
||||
blue="$(tput setaf 4 0 0)"
|
||||
magenta="$(tput setaf 5 0 0)"
|
||||
cyan="$(tput setaf 6 0 0)"
|
||||
white="$(tput setaf 7 0 0)"
|
||||
reset="$(tput sgr0)"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue