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
|
||||||
err=$(tput bold)$(tput setaf 1)
|
if command -v tput > /dev/null; then
|
||||||
norm=$(tput sgr0)
|
err=$(tput bold)$(tput setaf 1)
|
||||||
width=$(tput cols)
|
norm=$(tput sgr0)
|
||||||
|
width=$(tput cols)
|
||||||
|
else
|
||||||
|
err="[ERROR] "
|
||||||
|
norm=""
|
||||||
|
width=80
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
### pre-requisites
|
### pre-requisites
|
||||||
|
Loading…
Reference in New Issue
Block a user