From d36d2a5e0b451ca9b61aa868aa1c9d4a00f57aab Mon Sep 17 00:00:00 2001 From: o9000 Date: Sun, 13 Mar 2016 16:41:28 +0100 Subject: [PATCH] Version script: use ci instead of cI to prevent failure on older git versions --- get_version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get_version.sh b/get_version.sh index b43cd3b..357742f 100755 --- a/get_version.sh +++ b/get_version.sh @@ -31,7 +31,7 @@ then DIRTY="-dirty" fi fi - VERSION=$(git describe --exact-match 2>/dev/null || echo "$MAJOR-git$(git show -s --pretty=format:%cI.%h | tr -d ':' | tr -d '-' | tr '.' '-' | sed 's/T[0-9\+]*//g')")$DIRTY + VERSION=$(git describe --exact-match 2>/dev/null || echo "$MAJOR-git$(git show -s --pretty=format:%ci | cut -d ' ' -f 1 | tr -d '-').$(git show -s --pretty=format:%h)")$DIRTY else VERSION=$(head -n 1 ChangeLog | cut -d ' ' -f 2) if [ $VERSION = "master" ]