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
diff options
context:
space:
mode:
-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