Fix version.sh for Solaris 10
authorDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 19 Apr 2012 22:52:37 +0000 (23:52 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 19 Apr 2012 22:52:37 +0000 (23:52 +0100)
./version.sh: !: not found

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
version.sh

index 96416c2..4d7e79b 100755 (executable)
@@ -9,9 +9,8 @@ if [ -d .git ] && tag=`git describe --tags`; then
        git update-index --refresh --unmerged > /dev/null
 
        # Does the index show uncommitted changes?
-       if ! git diff-index --exit-code HEAD > /dev/null; then
+       git diff-index --exit-code HEAD > /dev/null || \
                v="$v"-dirty
-       fi
 else
        v="$v"-unknown
 fi