Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2017-08-11 01:35:02 +0300
committernachoparker <nacho@ownyourbits.com>2017-08-11 01:35:02 +0300
commitc2ca13e4ab6aebe5f9b9d3679bd944b3fc1700a7 (patch)
treebf00582bb04e54436a40882e0e351e3a1ab79543 /bin
parent20fea7025440d4cce037bd52ffb884e1ba644864 (diff)
fix version checkv0.19.11
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ncp-test-updates6
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