Added functions.sh containing copyable blocks
This commit is contained in:
		
							
								
								
									
										12
									
								
								functionst.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								functionst.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | |||||||
|  | # Begin Output Function-------------------------------------------------------------------------------------------------------------- | ||||||
|  | if [ -t 1 ] ; then | ||||||
|  |   RST='\033[0m'; BLD='\033[1m'; LGT='\033[2'; | ||||||
|  |   RED='\033[31m'; GRN='\033[32m'; YLO='\033[33m'; BLU='\033[34m'; PRP='\033[35m'; CYN='\033[36m'; LGR='\033[37m' | ||||||
|  | else | ||||||
|  |   RST=''; BLD=''; RED=''; GRN=''; YLO=''; BLU=''; PRP=''; CYN=''; LGR='' | ||||||
|  | fi | ||||||
|  | msg() { echo -e $BLD$BLU"::"$RST $BLD$*$RST; } | ||||||
|  | error() { echo -e $RED"::"$RST $BLD$*$RST; } | ||||||
|  | warn() { echo -e $YLO"::"$RST $BLD$*$RST; } | ||||||
|  | success() { echo -e $GRN"::"$RST $BLD$*$RST; } | ||||||
|  | # End Output Functions ------------------------------------------------------------------------------------------------------------- | ||||||
		Reference in New Issue
	
	Block a user