Skip to content

Commit

Permalink
Fix missing command isOld
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilsbhat committed Jul 31, 2022
1 parent 2a9dc0b commit 10cfd56
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions install-binary.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
#! /bin/bash -e

function verlte() {
[ "$1" = "`echo -e "$1\n$2" | sort -V | head -n1`" ]
}

function verlt() {
[ "$1" = "$2" ] && return 1 || verlte $1 $2
}

function isOld() {
verlte $1 $2 && echo "yes" || echo "no"
}

function download_plugin() {
osName=$(uname -s)
osArch=$(uname -m)
Expand Down

0 comments on commit 10cfd56

Please sign in to comment.