case statements and line breaks
This commit is contained in:
parent
f6d2ebaf61
commit
fb99e89924
1 changed files with 9 additions and 8 deletions
17
deps.sh
17
deps.sh
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
#These are the base dependencies for any install
|
#These are the base dependencies for any install
|
||||||
|
|
||||||
echo "installing base dependencies"
|
echo "installing base dependencies"
|
||||||
|
@ -14,14 +14,15 @@ sudo apt-get -my install git \
|
||||||
curl \
|
curl \
|
||||||
# byobu \
|
# byobu \
|
||||||
|
|
||||||
read -p "Does this system need ssh access?" -n 1 -r
|
read -n1 -p $'Does this system need ssh access?\n' REPLY
|
||||||
if [[ ! $REPLY =~ ^[Yy]$ ]]
|
if [[ $REPLY == [Yy] ]]; then
|
||||||
then sudo apt-get install openssh-server
|
sudo apt-get install openssh-server
|
||||||
fi
|
fi
|
||||||
read -p "Does this system have a GUI?" -n 1 -r
|
read -n1 -p $'\nDoes this system have a GUI?\n' REPLY
|
||||||
if [[ ! $REPLY = [Yy]$ ]]
|
if [[ $REPLY == [Yy] ]]; then
|
||||||
then sudo apt-get install emacs
|
sudo apt-get install emacs
|
||||||
else sudo apt-get install emacs-nox
|
else
|
||||||
|
sudo apt-get install emacs-nox
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#echo "enabling byobu"
|
#echo "enabling byobu"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue