From eb1fe8f2df5dcf5a5a79a7a7d60e7d2ab52663c2 Mon Sep 17 00:00:00 2001 From: Graham Pugh Date: Tue, 5 Mar 2024 15:39:41 +0100 Subject: [PATCH] fix OS comparison --- erase-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erase-install.sh b/erase-install.sh index a2fbb80..6163cff 100755 --- a/erase-install.sh +++ b/erase-install.sh @@ -1720,7 +1720,8 @@ run_mist() { # restrict to a particular major OS if selected if [[ $prechosen_os ]]; then # check whether chosen OS is older than the system - if ! is-at-least "$prechosen_os" "$system_version"; then + + if ! is-at-least "$system_version" "$prechosen_os"; then writelog "[run_mist] ERROR: cannot select an older OS than the system" echo exit 1