BMOSP/scripts/git_version.sh

10 lines
148 B
Bash
Executable File

#!/bin/bash
VERSION=`git rev-parse --short HEAD`
X=$(git status -s | grep -q '^.M')
if [ $? -eq 0 ]; then
VERSION="$VERSION"
fi
echo -n $VERSION