oh-my-fish/pkg/omf/functions/util/omf.check.version.fish
Itzik Ephraim 5764f0d9a4 omf doctor checks for fish & git versions
Minimum fish version: 2.2.0
Minimum git version: 1.9.5
2016-03-24 09:01:18 +02:00

4 lines
185 B
Fish

function omf.check.version -a min_version -a current_version
test (echo "$min_version"\n"$current_version" | tr '.' ' ' | sort -n | head -n1) = (echo "$min_version" | tr '.' ' ')
end