Commit 780c833c authored by Luís Fiolhais's avatar Luís Fiolhais

Inspect $FISH_VERSION variable instead of $version

parent 77ac6fa2
...@@ -54,8 +54,9 @@ function report -a what message ...@@ -54,8 +54,9 @@ function report -a what message
end end
function fish_version_compatible function fish_version_compatible
set -l major (echo $version | cut -d. -f1) set -q FISH_VERSION; or set -l FISH_VERSION $version
set -l minor (echo $version | cut -d. -f2) set -l major (echo $FISH_VERSION | cut -d. -f1)
set -l minor (echo $FISH_VERSION | cut -d. -f2)
return (test $major = $OMF_FISH_MIN_VER[1] -a $minor -ge $OMF_FISH_MIN_VER[2]) return (test $major = $OMF_FISH_MIN_VER[1] -a $minor -ge $OMF_FISH_MIN_VER[2])
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment