add text formatting presets
This commit is contained in:
		
							parent
							
								
									0a032cdae1
								
							
						
					
					
						commit
						394487fadb
					
				@ -8,6 +8,22 @@
 | 
			
		||||
# https://git.asifbacchus.app/ab-docker/scripts/LICENSE
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
### text formatting presets
 | 
			
		||||
if command -v tput > /dev/null; then
 | 
			
		||||
    cyan=$(tput setaf 6)
 | 
			
		||||
    err=$(tput bold)$(tput setaf 1)
 | 
			
		||||
    magenta=$(tput setaf 5)
 | 
			
		||||
    norm=$(tput sgr0)
 | 
			
		||||
    ok=$(tput setaf 2)
 | 
			
		||||
else
 | 
			
		||||
    cyan=''
 | 
			
		||||
    err=''
 | 
			
		||||
    magenta=''
 | 
			
		||||
    norm=''
 | 
			
		||||
    ok=''
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### pre-requisites
 | 
			
		||||
 | 
			
		||||
# check if wget is installed
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user