mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-31 02:17:18 +00:00 
			
		
		
		
	fix issue: sed contains "&" sign
This commit is contained in:
		
							parent
							
								
									2c03af204e
								
							
						
					
					
						commit
						23cb43c85f
					
				
							
								
								
									
										3
									
								
								le.sh
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								le.sh
									
									
									
									
									
								
							| @ -196,6 +196,9 @@ _setopt() { | |||||||
|   fi |   fi | ||||||
|   if grep -H -n "^$__opt$__sep" "$__conf" > /dev/null ; then |   if grep -H -n "^$__opt$__sep" "$__conf" > /dev/null ; then | ||||||
|     _debug OK |     _debug OK | ||||||
|  |     if [[ "$__val" == *"&"* ]] ; then | ||||||
|  |       __val="$(echo $__val | sed 's/&/\\&/g')" | ||||||
|  |     fi | ||||||
|     sed -i "s|^$__opt$__sep.*$|$__opt$__sep$__val$__end|" "$__conf" |     sed -i "s|^$__opt$__sep.*$|$__opt$__sep$__val$__end|" "$__conf" | ||||||
|   else |   else | ||||||
|     _debug APP |     _debug APP | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user