From 2ccded21a91f15e85c2c37993d0799b779e01c84 Mon Sep 17 00:00:00 2001 From: Ansa89 Date: Tue, 26 Jul 2016 14:45:39 -0400 Subject: [PATCH] Update version.sh --- version.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/version.sh b/version.sh index 377ce0d..9ac043d 100644 --- a/version.sh +++ b/version.sh @@ -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)"