From 43a37c1f1449c0fd87b3844925b15a21bd0f36a9 Mon Sep 17 00:00:00 2001 From: Stevie Card Date: Tue, 17 Apr 2018 15:47:35 -0400 Subject: [PATCH] experimenting with getting user input --- deps.sh | 29 +++++++++++++++++++++++++++++ deps.zsh | 19 ------------------- 2 files changed, 29 insertions(+), 19 deletions(-) create mode 100755 deps.sh delete mode 100755 deps.zsh diff --git a/deps.sh b/deps.sh new file mode 100755 index 0000000..0648c49 --- /dev/null +++ b/deps.sh @@ -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 + diff --git a/deps.zsh b/deps.zsh deleted file mode 100755 index 929577e..0000000 --- a/deps.zsh +++ /dev/null @@ -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 -