mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-14 10:37:38 +01:00
12 lines
250 B
Bash
Executable File
12 lines
250 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# get current git version, redirect stderr to stdin, change : to _
|
|
VERSION=$(git describe --always 2>&1 | tr : _ )
|
|
|
|
# ignore git stderr "fatal:
|
|
if case $VERSION in fatal*) ;; *) false;; esac; then
|
|
echo ""
|
|
else
|
|
echo "$VERSION"
|
|
fi;
|