lkml.org 
[lkml]   [2002]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] menuconfig: fix error exit if awk fails
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/
\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.021 / U:4.244 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site