vgmstream/version.sh

12 lines
250 B
Bash
Raw Normal View History

#!/bin/sh
# get current git version, redirect stderr to stdin, change : to _
2019-09-02 20:48:33 +02:00
VERSION=$(git describe --always 2>&1 | tr : _ )
# ignore git stderr "fatal:
if case $VERSION in fatal*) ;; *) false;; esac; then
echo ""
else
echo "$VERSION"
fi;