mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 20:16:12 +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`
|
||||
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 New Issue
Block a user