mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-17 03:52:44 +08:00
make_pkg: get static version if git is not available
This commit is contained in:
parent
73d9f80772
commit
83b4adffc0
|
@ -5,6 +5,9 @@
|
||||||
VERSION=`git describe --always --dirty 2>/dev/null`
|
VERSION=`git describe --always --dirty 2>/dev/null`
|
||||||
if test -z "$VERSION" ; then
|
if test -z "$VERSION" ; then
|
||||||
echo "Could not get version from git"
|
echo "Could not get version from git"
|
||||||
|
if test -f version; then
|
||||||
|
VERSION=`cat version`
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Version is $VERSION"
|
echo "Version is $VERSION"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user