From 1ffd374a4fa834e0d85bb063eedf718cc3bb3680 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Mon, 10 May 2021 02:55:16 -0600 Subject: [PATCH] fix: set TERM for tput if not set - stop warning messages in syslog from systemd invocation --- cfddns.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cfddns.sh b/cfddns.sh index 771cb38..add4876 100644 --- a/cfddns.sh +++ b/cfddns.sh @@ -3,11 +3,13 @@ # # update Cloudflare DNS records with current (dynamic) IP address # Script by Asif Bacchus -# Last modified: May 7, 2021 +# Last modified: May 10, 2021 +# Version 2.2 # ### text formatting presets using tput if command -v tput >/dev/null; then + [ -z "$TERM" ] && export TERM=xterm bold=$(tput bold) cyan=$(tput setaf 6) err=$(tput bold)$(tput setaf 1)