don't use tput if it's not installed
This commit is contained in:
parent
02a27f55a1
commit
ba58997b9f
@ -25,9 +25,15 @@ trapExit () {
|
|||||||
|
|
||||||
|
|
||||||
### text formatting presets
|
### text formatting presets
|
||||||
|
if command -v tput > /dev/null; then
|
||||||
err=$(tput bold)$(tput setaf 1)
|
err=$(tput bold)$(tput setaf 1)
|
||||||
norm=$(tput sgr0)
|
norm=$(tput sgr0)
|
||||||
width=$(tput cols)
|
width=$(tput cols)
|
||||||
|
else
|
||||||
|
err="[ERROR] "
|
||||||
|
norm=""
|
||||||
|
width=80
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
### pre-requisites
|
### pre-requisites
|
||||||
|
Loading…
Reference in New Issue
Block a user