Handle missing tput gracefully

This commit is contained in:
3wc 2020-10-29 19:40:19 +02:00
parent 5a72ed0cfb
commit dba3c391bd

6
abra
View File

@ -821,6 +821,12 @@ abra() {
abra__app_ abra__port_ abra__user_ abra__service_ abra__src_ abra__dst_ \
abra__domain_ abra___server abra___domain abra___force
if ! type tput > /dev/null 2>&1; then
tput() {
echo -n
}
fi
DOCOPT_PREFIX=abra_
eval "$(docopt "$@")"