This commit is contained in:
ZAKS Web 2025-05-06 23:40:27 +02:00
parent e019edfe1b
commit 76280be844
1 changed files with 2 additions and 2 deletions

View File

@ -1101,10 +1101,10 @@ if [[ $p -lt 3 ]]; then
NEWVERSION=$(curl -sSL "https://git.zaks.web.za/thisiszeev/perfect-nextcloud-installer/raw/branch/main/VERSION") NEWVERSION=$(curl -sSL "https://git.zaks.web.za/thisiszeev/perfect-nextcloud-installer/raw/branch/main/VERSION")
if [[ ! "$NEWVERSION" =~ ^[0-9]+(\.[0-9]+)*$ ]]; then if [[ ! "$NEWVERSION" =~ ^[0-9]+(\.[0-9]+)*$ ]]; then
echo "Remote version could not be retrieved." >&2 echo "Remote version could not be retrieved." >&2
NEWVERSION="$VERSION" NEWVERSION="$INSTALLERVERSION"
fi fi
fi fi
if compareVersions "$VERSION" "$NEWVERSION" || [[ $SELF_UPDATED == 1 ]]; then if compareVersions "$INSTALLERVERSION" "$NEWVERSION" || [[ $SELF_UPDATED == 1 ]]; then
downloadUpdate downloadUpdate
fi fi
fi fi