mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-30 18:07:15 +00:00 
			
		
		
		
	This commit is contained in:
		
							parent
							
								
									ad153ae041
								
							
						
					
					
						commit
						52f8b787c9
					
				
							
								
								
									
										4
									
								
								acme.sh
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								acme.sh
									
									
									
									
									
								
							| @ -1610,14 +1610,14 @@ _setopt() { | ||||
|       __val="$(echo "$__val" | sed 's/&/\\&/g')" | ||||
|     fi | ||||
|     text="$(cat "$__conf")" | ||||
|     printf -- "%s" "$text" | sed "s|^$__opt$__sep.*$|$__opt$__sep$__val$__end|" >"$__conf" | ||||
|     printf -- "%s\n" "$text" | sed "s|^$__opt$__sep.*$|$__opt$__sep$__val$__end|" >"$__conf" | ||||
| 
 | ||||
|   elif grep -n "^#$__opt$__sep" "$__conf" >/dev/null; then | ||||
|     if _contains "$__val" "&"; then | ||||
|       __val="$(echo "$__val" | sed 's/&/\\&/g')" | ||||
|     fi | ||||
|     text="$(cat "$__conf")" | ||||
|     printf -- "%s" "$text" | sed "s|^#$__opt$__sep.*$|$__opt$__sep$__val$__end|" >"$__conf" | ||||
|     printf -- "%s\n" "$text" | sed "s|^#$__opt$__sep.*$|$__opt$__sep$__val$__end|" >"$__conf" | ||||
| 
 | ||||
|   else | ||||
|     _debug3 APP | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user