mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-31 02:17:18 +00:00 
			
		
		
		
	minor, fix color
This commit is contained in:
		
							parent
							
								
									f3e4cea34f
								
							
						
					
					
						commit
						08ee072f11
					
				
							
								
								
									
										13
									
								
								acme.sh
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								acme.sh
									
									
									
									
									
								
							| @ -47,24 +47,27 @@ if [ -z "$AGREEMENT" ] ; then | ||||
|   AGREEMENT="$DEFAULT_AGREEMENT" | ||||
| fi | ||||
| 
 | ||||
| 
 | ||||
| __INTERACTIVE="" | ||||
| if [ -t 1 ] ; then | ||||
|   __INTERACTIVE="1" | ||||
| fi | ||||
| 
 | ||||
| __green() { | ||||
|   if [ -t 1 ] ; then | ||||
|   if [ "$__INTERACTIVE" ] ; then | ||||
|     printf '\033[1;31;32m' | ||||
|   fi | ||||
|   printf -- "$1" | ||||
|   if [ -t 1 ] ; then | ||||
|   if [ "$__INTERACTIVE" ] ; then | ||||
|     printf '\033[0m' | ||||
|   fi | ||||
| } | ||||
| 
 | ||||
| __red() { | ||||
|   if [ -t 1 ] ; then | ||||
|   if [ "$__INTERACTIVE" ] ; then | ||||
|     printf '\033[1;31;40m' | ||||
|   fi | ||||
|   printf -- "$1" | ||||
|   if [ -t 1 ] ; then | ||||
|   if [ "$__INTERACTIVE" ] ; then | ||||
|     printf '\033[0m' | ||||
|   fi | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user