From 929e72330cad743794fe149a9f8e2fc1216ad16d Mon Sep 17 00:00:00 2001 From: "Peter A. Bigot" Date: Tue, 18 Feb 2014 18:31:01 -0600 Subject: [PATCH] autogen.sh: use POSIX comparison for test Although bash recognizes ==, and the shell has a shebang to use it, some of us still automatically type "sh autogen.sh" instead of "./autogen.sh", and this breaks on debian/jessie where /bin/sh is not bash. The fix is trivial and should be safe for bash too (which recommends using = instead of == with the test command for POSIX conformance. --- autogen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index e9b7efff..7bac7e26 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,7 +1,7 @@ #!/bin/bash # On MAC OS X, GNU libtoolize is named 'glibtoolize': -if [ `(uname -s) 2>/dev/null` == 'Darwin' ] +if [ `(uname -s) 2>/dev/null` = 'Darwin' ] then glibtoolize else -- 2.47.2