From 86157bf0447573e4c4d13d8b0a798a3e37c8fdf4 Mon Sep 17 00:00:00 2001 From: "seawood%netscape.com" Date: Mon, 26 Nov 2001 22:28:12 +0000 Subject: [PATCH] Add explicit check against zero when looking to remove an option so that test doesn't treat the return value of grep as "true" always. Bug 111653 r=bryner git-svn-id: svn://10.0.0.236/trunk@108924 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/configure.in b/mozilla/configure.in index 8992c5e8920..31f4dced3fd 100644 --- a/mozilla/configure.in +++ b/mozilla/configure.in @@ -2815,7 +2815,7 @@ MOZ_ARG_ENABLE_STRING(extensions, MOZ_EXTENSIONS="" elif test "$option" = "default"; then MOZ_EXTENSIONS="$MOZ_EXTENSIONS $MOZ_EXTENSIONS_DEFAULT" - elif test `echo "$option" | grep -c ^-`; then + elif test `echo "$option" | grep -c ^-` != 0; then option=`echo $option | sed 's/^-//'` MOZ_EXTENSIONS=`echo "$MOZ_EXTENSIONS" | sed "s/ ${option}//"` else