Skip to content

Commit

Permalink
fix OS comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
grahampugh committed Mar 5, 2024
1 parent d0f7db9 commit eb1fe8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erase-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eb1fe8f

Please sign in to comment.