[blam] autogen.sh: fix syntax error when checking the $DIE variable
- From: Andrés Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [blam] autogen.sh: fix syntax error when checking the $DIE variable
- Date: Fri, 14 Jun 2013 09:25:46 +0000 (UTC)
commit 487f217366e418f3e927cf3611581eb61fcc034c
Author: Andrés G. Aragoneses <knocte gmail com>
Date: Fri Jun 14 08:42:46 2013 +0200
autogen.sh: fix syntax error when checking the $DIE variable
This line was throwing this error:
"122: test: Illegal number: "
Now we use simple concatenation with "x", which is also a good practice
in case the variable to check has spaces in it.
autogen.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index fd89f11..c9966d9 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -119,7 +119,7 @@ if grep "^AM_[A-Z0-9_]\{1,\}_GETTEXT" "$CONFIGURE" >/dev/null; then
fi
fi
-if test "$DIE" -eq 1; then
+if test "x$DIE" = "x1" ; then
exit 1
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]