mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-31 10:27:22 +00:00 
			
		
		
		
	_contains instead of echo
This commit is contained in:
		
							parent
							
								
									5f9b0675e2
								
							
						
					
					
						commit
						8995d3434f
					
				| @ -187,7 +187,7 @@ _loopia_update_record() { | ||||
| 
 | ||||
|   response="$(_post "$xml_content" "$LOOPIA_Api" "" "POST")" | ||||
| 
 | ||||
|   if ! echo "$response" | grep "OK" >/dev/null; then | ||||
|   if ! _contains "$response" "OK"; then | ||||
|     _err "Error" | ||||
|     return 1 | ||||
|   fi | ||||
| @ -219,7 +219,7 @@ _loopia_add_record() { | ||||
| 
 | ||||
|   response="$(_post "$xml_content" "$LOOPIA_Api" "" "POST")" | ||||
| 
 | ||||
|   if ! echo "$response" | grep "OK" >/dev/null; then | ||||
|   if ! _contains "$response" "OK"; then | ||||
|     _err "Error" | ||||
|     return 1 | ||||
|   fi | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user