From d3e7ae2b8283e5d05460c2b3b6d365a6562216b8 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Tue, 31 May 2011 12:27:34 -0700 Subject: [PATCH] buildtools: fix == bashism in mkversion.sh With a branch named bpdev I was getting an error at compile time: [: 1: branches/bpdev: unexpected operator This was because /bin/sh on my distro is dash which doesn't know what == is. Fix this by using a single =. --- buildtools/mkversion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildtools/mkversion.sh b/buildtools/mkversion.sh index 2ddad5371..76044e68c 100755 --- a/buildtools/mkversion.sh +++ b/buildtools/mkversion.sh @@ -23,7 +23,7 @@ fi if [ -r "$1" ]; then eval `cat noit_version.h | awk '/^#define/ { print $2"="$3;}'` - if [ "$NOIT_BRANCH" == "$BRANCH" -a "$NOIT_VERSION" == "$VERSION" ]; then + if [ "$NOIT_BRANCH" = "$BRANCH" -a "$NOIT_VERSION" = "$VERSION" ]; then echo " * version unchanged" exit fi