fixes infinite loop bug in setup

This commit is contained in:
Menno van Leeuwen 2024-11-08 14:05:28 +01:00
parent 73013b36d0
commit 36cb9bbb42
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

@ -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