fixes infinite loop bug in setup
This commit is contained in:
parent
73013b36d0
commit
36cb9bbb42
8
setup.sh
8
setup.sh
@ -55,14 +55,14 @@ create_hardware_config() {
|
|||||||
tput setaf 3
|
tput setaf 3
|
||||||
echo "Is this a server or workstation? (s/w)"
|
echo "Is this a server or workstation? (s/w)"
|
||||||
tput sgr0
|
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:"
|
echo "Invalid input. Please enter 's' for server or 'w' for workstation:"
|
||||||
read type
|
read systemType
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $type == "s" ]; then
|
if [ $systemType == "s" ]; then
|
||||||
isServer="true"
|
isServer="true"
|
||||||
isWorkstation="false"
|
isWorkstation="false"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user