From 1da068a263dbb8504142f3713c2bd9f9b3ffb679 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 22 May 2013 17:07:17 +0000 Subject: [PATCH] improve grep for error git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16395 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/xcatdsklspost | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT/postscripts/xcatdsklspost b/xCAT/postscripts/xcatdsklspost index 89edb7a47..c55e0ee9f 100755 --- a/xCAT/postscripts/xcatdsklspost +++ b/xCAT/postscripts/xcatdsklspost @@ -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