diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-08-11 01:35:02 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-08-11 01:35:02 +0300 |
commit | c2ca13e4ab6aebe5f9b9d3679bd944b3fc1700a7 (patch) | |
tree | bf00582bb04e54436a40882e0e351e3a1ab79543 /bin | |
parent | 20fea7025440d4cce037bd52ffb884e1ba644864 (diff) |
fix version checkv0.19.11
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ncp-test-updates | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ncp-test-updates b/bin/ncp-test-updates index 08617f76..b0f79ab1 100755 --- a/bin/ncp-test-updates +++ b/bin/ncp-test-updates @@ -15,11 +15,11 @@ if test -f $VERFILE && grep -qP "v\d+\.\d+\.\d+" $VERFILE; then MIN=$( grep -oP "\d+\.\d+\.\d+" /usr/local/etc/ncp-version | cut -d. -f2 ) PAT=$( grep -oP "\d+\.\d+\.\d+" /usr/local/etc/ncp-version | cut -d. -f3 ) - if [[ $MAJOR > $MAJ ]]; then + if [ $MAJOR -gt $MAJ ]; then NEED_UPDATE=true - elif [[ $MAJOR == $MAJ ]] && [[ $MINOR > $MIN ]]; then + elif [ $MAJOR -eq $MAJ ] && [ $MINOR -gt $MIN ]; then NEED_UPDATE=true - elif [[ $MAJOR == $MAJ ]] && [[ $MINOR == $MIN ]] && [[ $PATCH > $PAT ]]; then + elif [ $MAJOR -eq $MAJ ] && [ $MINOR -eq $MIN ] && [ $PATCH -gt $PAT ]; then NEED_UPDATE=true fi fi |