using case statements instead of nested ifs

This commit is contained in:
Stefen Auris 2021-07-27 05:00:22 -04:00
parent 7e84acc3b2
commit 4fa14e4cac

View file

@ -1,6 +1,6 @@
#!/bin/bash
#install pre-req.
echo -n "Which Linux flavor will we be installing programs for? (u/o)"; read -r answer
echo -n "Which Linux flavor will we be installing programs for? (u/o/a)"; read -r answer
case $answer in
u)
bash udeps.sh