From 36cb9bbb429144adb1449143d16285fdb9dc7c3c Mon Sep 17 00:00:00 2001 From: Menno van Leeuwen Date: Fri, 8 Nov 2024 14:05:28 +0100 Subject: [PATCH] fixes infinite loop bug in setup --- setup.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/setup.sh b/setup.sh index f1eaadd..c4dbb3e 100755 --- a/setup.sh +++ b/setup.sh @@ -55,14 +55,14 @@ create_hardware_config() { tput setaf 3 echo "Is this a server or workstation? (s/w)" tput sgr0 - read type - - while [[ $type != "s" && $type != "w" ]]; do + + read systemType + while [[ $systemType != "s" && $systemType != "w" ]]; do echo "Invalid input. Please enter 's' for server or 'w' for workstation:" - read type + read systemType done - if [ $type == "s" ]; then + if [ $systemType == "s" ]; then isServer="true" isWorkstation="false" else