mirror of
				https://github.com/flynx/proxmox-utils.git
				synced 2025-10-31 04:00:08 +00:00 
			
		
		
		
	minor fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									843b64766d
								
							
						
					
					
						commit
						1d71c75a24
					
				| @ -216,9 +216,9 @@ PROTOCOLS=$(printf "\\|%s" "${!HANDLERS[@]}") | ||||
| PROTOCOLS=${PROTOCOLS:2} | ||||
| 
 | ||||
| check(){ | ||||
| 	# NOTE: we are preserving whitespace here... | ||||
| 	local comment=`sed \ | ||||
| 			-e 's/^\(.*\)\('"$PROTOCOLS"'\):\/\/.*$/\1/' \ | ||||
| 			-e 's/^\s*//;s/\s*$//' \ | ||||
| 		<<<$1` | ||||
| 	local target=`sed \ | ||||
| 			-e 's/^.*\s*\(\('"$PROTOCOLS"'\):\/\/\)/\1/' \ | ||||
| @ -249,7 +249,7 @@ for site in ${SITES[@]} ; do | ||||
| 	IFS=$'\n' \ | ||||
| 		res=($(check "$site")) | ||||
| 
 | ||||
| 	comment=${res[0]/COMMENT=/} | ||||
| 	comment="${res[0]/COMMENT=/}" | ||||
| 	site=${res[1]/URL=/} | ||||
| 	res=${res[2]/RESPONSE=/} | ||||
| 
 | ||||
|  | ||||
| @ -63,7 +63,7 @@ cp -f "$CONFIG" "$CONFIG".bak | ||||
| 		./check-status "$line" \ | ||||
| 			| tee -a $TEXT_STATUS \ | ||||
| 			| sed \ | ||||
| 			-e 's/^\(.*\)\(ERROR.*$\)/\1**\2**/' \ | ||||
| 				-e 's/^\(.*\)\(ERROR.*$\)/\1**\2**/' \ | ||||
| 				-e 's/^/#/' | ||||
| 	done | ||||
| 	echo "#_(checked on: ${DATE})_" | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user