experimenting with getting user input

This commit is contained in:
Stefen Auris 2018-04-17 15:47:35 -04:00
parent fcec1df929
commit 43a37c1f14
2 changed files with 29 additions and 19 deletions

29
deps.sh Executable file
View file

@ -0,0 +1,29 @@
#!/bin/sh
#These are the base dependencies for any install
echo "installing base dependencies"
sudo apt-get -my install git \
stow \
etckeeper \
tmux \
zsh \
vim \
powerline\
htop \
mc \
curl \
# byobu \
read -p "Does this system need ssh access?" -n 1 -r
if [[ ! $REPLY =~ ^[Yy]$ ]]
then sudo apt-get install openssh-server
fi
read -p "Does this system have a GUI?" -n 1 -r
if [[ ! $REPLY = [Yy]$ ]]
then sudo apt-get install emacs
else sudo apt-get install emacs-nox
fi
#echo "enabling byobu"
#byobu-enable

View file

@ -1,19 +0,0 @@
#!/bin/sh
#These are the base dependencies for any install
echo "installing base dependencies"
sudo apt-get -m install openssh-server \
stow \
tmux \
zsh \
vim \
powerline\
htop \
mc \
curl \
# byobu \
#emacs need to find a way to select cmd only or with GUI
#echo "enabling byobu"
#byobu-enable