mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-22 13:48:16 +08:00
Inspect $FISH_VERSION variable instead of $version
This commit is contained in:
parent
77ac6fa261
commit
780c833cb4
|
@ -54,8 +54,9 @@ function report -a what message
|
|||
end
|
||||
|
||||
function fish_version_compatible
|
||||
set -l major (echo $version | cut -d. -f1)
|
||||
set -l minor (echo $version | cut -d. -f2)
|
||||
set -q FISH_VERSION; or set -l FISH_VERSION $version
|
||||
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])
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user