From 780c833cb490bda9ae08418eadc200e3ccee5a71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Fiolhais?= Date: Wed, 1 Jun 2016 22:14:01 +0100 Subject: [PATCH] Inspect $FISH_VERSION variable instead of $version --- bin/install | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/install b/bin/install index d323ee8..dd1773a 100755 --- a/bin/install +++ b/bin/install @@ -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