Version script: use ci instead of cI to prevent failure on older git versions
This commit is contained in:
@@ -31,7 +31,7 @@ then
|
|||||||
DIRTY="-dirty"
|
DIRTY="-dirty"
|
||||||
fi
|
fi
|
||||||
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
|
else
|
||||||
VERSION=$(head -n 1 ChangeLog | cut -d ' ' -f 2)
|
VERSION=$(head -n 1 ChangeLog | cut -d ' ' -f 2)
|
||||||
if [ $VERSION = "master" ]
|
if [ $VERSION = "master" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user