From 2f152c63d13e231622dd02180770f5e0a45f7269 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Thu, 16 Nov 2023 16:51:12 -0600 Subject: [PATCH] fixed: install script infinite loop --- bin/install.sh | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/bin/install.sh b/bin/install.sh index b2ef2ee8..ea84bca8 100755 --- a/bin/install.sh +++ b/bin/install.sh @@ -212,16 +212,14 @@ initRuntime() { echo "2) OVM: A custom, lightweight runtime made for Onyx. Supports debugging. Slower than Wasmer." echo "3) None: Omit using a runtime and only use Onyx as a compiler to WebAssembly." - while true; do - read -p "Which runtime would you like to use? [1/2/3] " selected - - case $selected in - 1) RUNTIME="wasmer"; break ;; - 2) RUNTIME="ovm"; break ;; - 3) RUNTIME="none"; break ;; - *) echo "Invalid choice. Quitting."; exit 1 ;; - esac - done + read -p "Which runtime would you like to use? [1/2/3] " selected + + case $selected in + 1) RUNTIME="wasmer"; break ;; + 2) RUNTIME="ovm"; break ;; + 3) RUNTIME="none"; break ;; + *) echo "Invalid choice. Quitting."; exit 1 ;; + esac } onyx_install() { -- 2.25.1