Permalink
Browse files

all: fixed 'if' statement syntax in get_version

  • Loading branch information...
1 parent c640901 commit 6f143958296645cca9ce0b1c456b44b7131877f9 @mkoval committed Jan 22, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 get_version
View
@@ -1,13 +1,12 @@
#!/bin/sh
ver=`git rev-parse --verify --short HEAD`
-if ! (($?)); then
-
+if [ $? -eq 0 ]; then
printf "%s%s" "-g" "$ver"
if git diff-index --name-only HEAD > /dev/null; then
printf "%s" "-dirty"
fi
else
- printf "-nover"
+ printf "%s" "-nover"
fi

0 comments on commit 6f14395

Please sign in to comment.