fix: set TERM for tput if not set
- stop warning messages in syslog from systemd invocation
This commit is contained in:
		
							parent
							
								
									0cd84a3711
								
							
						
					
					
						commit
						1ffd374a4f
					
				| @ -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) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user