Check mk/validate.mk exists before we try grepping it
authorIan Lynagh <igloo@earth.li>
Sun, 26 Jun 2011 14:57:47 +0000 (15:57 +0100)
committerIan Lynagh <igloo@earth.li>
Sun, 26 Jun 2011 14:57:47 +0000 (15:57 +0100)
validate

index 0a0677e..32432b6 100755 (executable)
--- a/validate
+++ b/validate
@@ -146,7 +146,7 @@ the minimal testing procedure, please do further testing as necessary.
 When you are satisfied that you haven't broken anything, go ahead and
 push/send your patches.
 EOF
-        if grep -q "^[^#]" mk/validate.mk
+        if [ -f mk/validate.mk ] && grep -q "^[^#]" mk/validate.mk
         then
             cat <<EOF