Skip to content

Commit

Permalink
Update version.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Ansa89 committed Jul 26, 2016
1 parent bec8a38 commit 2ccded2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ SYSTEM=$(uname -a)
MACHINE=$(uname -m)
OS=$(uname)

if [[ -d ".git" ]] || [[ -d "../../.git" ]]; then
if [ -d ".git" -o -d "../../.git" ]; then
REV="${REV}~"
if git status | grep -q "modified:" &>/dev/null ; then
if git status | grep -q "modified:" ; then
REV="${REV}M"
fi
REV="${REV}$(git rev-list HEAD -n 1 | head -c 7)"
Expand Down

0 comments on commit 2ccded2

Please sign in to comment.