fix: set TERM for tput if not set

- stop warning messages in syslog from systemd invocation
This commit is contained in:
Asif Bacchus 2021-05-10 02:55:16 -06:00
parent 0cd84a3711
commit 1ffd374a4f

View File

@ -3,11 +3,13 @@
# #
# update Cloudflare DNS records with current (dynamic) IP address # update Cloudflare DNS records with current (dynamic) IP address
# Script by Asif Bacchus <asif@bacchus.cloud> # Script by Asif Bacchus <asif@bacchus.cloud>
# Last modified: May 7, 2021 # Last modified: May 10, 2021
# Version 2.2
# #
### text formatting presets using tput ### text formatting presets using tput
if command -v tput >/dev/null; then if command -v tput >/dev/null; then
[ -z "$TERM" ] && export TERM=xterm
bold=$(tput bold) bold=$(tput bold)
cyan=$(tput setaf 6) cyan=$(tput setaf 6)
err=$(tput bold)$(tput setaf 1) err=$(tput bold)$(tput setaf 1)