Skip to content

Commit

Permalink
buildtools: fix == bashism in mkversion.sh
Browse files Browse the repository at this point in the history
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 =.
  • Loading branch information
Brandon Philips committed May 31, 2011
1 parent ad6b587 commit d3e7ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildtools/mkversion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d3e7ae2

Please sign in to comment.