mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	improve grep for error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16395 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -57,9 +57,9 @@ download_postscripts() | ||||
|            # have additional checks for | ||||
|            # failed: Connection httpd not running | ||||
|            # 404: Not Found  - if directory does not exist | ||||
|            grep -i "failed: Connection " /tmp/wget.log  | ||||
|            grep -i -E "... failed: Connection refused.$" /tmp/wget.log  | ||||
|            rc1=$? | ||||
|            grep -i "404: Not Found" /tmp/wget.log  | ||||
|            grep -i -E "ERROR 404: Not Found.$" /tmp/wget.log  | ||||
|            rc2=$? | ||||
|            # check to see no errors at all, grep returns 1 | ||||
|            if [ $rc1 -eq 1 ] && [ $rc2 -eq 1 ]; then    | ||||
|   | ||||
		Reference in New Issue
	
	Block a user