Files
totp/scripts/get-version.sh
2019-06-01 09:43:45 -05:00

9 lines
149 B
Bash
Executable File

#!/bin/bash
VERSION=$(git tag --points-at HEAD | head -1)
if [ -z "$VERSION" ]; then
VERSION=$(git rev-parse HEAD | cut -c 1-7)
fi
echo $VERSION