Files
motion/git-commit-version.sh
2016-10-21 12:27:06 +02:00

9 lines
161 B
Bash
Executable File

#!/bin/sh
BASE_VERSION="4.0"
if [ -d .git ]; then
GIT_COMMIT=`git show -s --format=%h`
echo -n "$BASE_VERSION+git$GIT_COMMIT"
else
echo -n "$BASE_VERSION"
fi