Also upgrade 99.99.99

This commit is contained in:
Aaron Dewes 2022-03-02 09:39:13 +01:00 committed by GitHub
parent 81a97d8c43
commit b4d6dda2d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,9 +40,10 @@ main () {
local external_version=$(cat "${CITADEL_ROOT}/info.json" | jq -r .version | cut -d "-" -f "1")
local sd_version=$(cat "${SD_CITADEL_ROOT}/info.json" | jq -r .version | cut -d "-" -f "1")
if [[ "${external_version}" == "0.5"* ]]; then
if [[ "${external_version}" == "0.5"* ]] || [[ "${external_version}" == "99.99.99" ]]; then
echo "External storage is on a pre version number reset version, updating to the latest version."
"${CITADEL_ROOT}/scripts/update/update" --path "${SD_CITADEL_ROOT}"
exit 0
fi
if ! check_semver_range ">${external_version}" "${sd_version}"; then