[PATCH] menuconfig: fix error exit if awk fails

From: Michael Elizabeth Chastain (mec@shout.net)
Date: Wed Feb 13 2002 - 10:39:59 EST


This one-liner fixes an error case in Menuconfig when awk fails.
Written by Andrew Church (achurch@achurch.org).
Reviewed and tested by Michael Elizabeth Chastain (mec@shout.net).

Submission history:
  2002-02-05 submission #1
  2002-02-11 merged into patch-2.5.4-dj1.diff
  2002-02-13 submission #2

Linus ... would you like me to send you patches directly, or would you
like me to become a "stratum 2" maintainer, working through someone else?

Michael Elizabeth Chastain
<mailto:mec@shout.net>
"love without fear"

===

diff -u -r -N linux-2.5.4/scripts/Menuconfig linux/scripts/Menuconfig
--- linux-2.5.4/scripts/Menuconfig Tue Jan 29 22:31:46 2002
+++ linux/scripts/Menuconfig Wed Feb 13 07:27:59 2002
@@ -689,7 +689,7 @@
 # Call awk, and watch for error codes, etc.
 #
 function callawk () {
-awk "$1" || echo "Awk died with error code $?. Giving up." || exit 1
+awk "$1" || { echo "Awk died with error code $?. Giving up."; exit 1; }
 }
 
 #
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Feb 15 2002 - 21:00:55 EST