From b4d6dda2d5d4a14f3792aefe9e5f3b16aa7efd7d Mon Sep 17 00:00:00 2001 From: Aaron Dewes Date: Wed, 2 Mar 2022 09:39:13 +0100 Subject: [PATCH] Also upgrade 99.99.99 --- scripts/citadel-os/external-storage/update-from-sdcard | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/citadel-os/external-storage/update-from-sdcard b/scripts/citadel-os/external-storage/update-from-sdcard index 598f26e..a0acbb4 100755 --- a/scripts/citadel-os/external-storage/update-from-sdcard +++ b/scripts/citadel-os/external-storage/update-from-sdcard @@ -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