]> git.hungrycats.org Git - linux/commitdiff
[PATCH] menuconfig: fix error exit if awk fails
authorMichael Elizabeth Chastain <mec@shout.net>
Wed, 13 Feb 2002 04:23:42 +0000 (20:23 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Wed, 13 Feb 2002 04:23:42 +0000 (20:23 -0800)
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).

Michael Elizabeth Chastain

===

scripts/Menuconfig

index 614f0e1d129308858e51f1c70b40486ef9e42b80..5d096a1c0a75f91c5e19811bd6222018c988f3f2 100644 (file)
@@ -689,7 +689,7 @@ function l_choice () {
 # 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; }
 }
 
 #