use defaults instead of test

This commit is contained in:
2019-05-17 08:38:21 +02:00
parent bcdfeb6f88
commit f3d7bb284d

16
main.sh
View File

@@ -10,15 +10,15 @@ then
warning="$(tput setaf 3)$bold" warning="$(tput setaf 3)$bold"
error="$(tput setab 1)$bold" error="$(tput setab 1)$bold"
reset=$(tput sgr0) reset=$(tput sgr0)
else
inverse=""
bold="[["
success="[["
info="[["
warning="[["
error="[["
reset="]]"
fi fi
# Ensure text styling, if tput could not work
inverse=${inverse:-[[}
bold=${bold:-[[}
success=${success:-[[}
info=${info:-[[}
warning=${warning:-[[}
error=${error:-[[}
reset=${reset:-]]}
export BOG_TITLE_PRINTED=0 export BOG_TITLE_PRINTED=0