mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
make_pkg: get static version if git is not available
This commit is contained in:
parent
73d9f80772
commit
83b4adffc0
1 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,9 @@
|
|||
VERSION=`git describe --always --dirty 2>/dev/null`
|
||||
if test -z "$VERSION" ; then
|
||||
echo "Could not get version from git"
|
||||
if test -f version; then
|
||||
VERSION=`cat version`
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Version is $VERSION"
|
||||
|
|
Loading…
Reference in a new issue