Removed sudo apt-get update;sudo apt-get upgrade from -d and -s flags

This commit is contained in:
Austen Adler 2014-06-23 00:09:29 -04:00
parent c163b426ee
commit c8dade27e8

View File

@ -31,12 +31,12 @@ while getopts ":hbsdtc" VALUE "$@"; do
if [ "$VALUE" = "s" ] ; then
echo "Installing server applications:"
echo $(grep -vE "^\s*#" server.txt | tr "\n" " ")
sudo apt-get update;sudo apt-get upgrade;sudo apt-get install $(grep -vE "^\s*#" server.txt | tr "\n" " ")
sudo apt-get install $(grep -vE "^\s*#" server.txt | tr "\n" " ")
fi
if [ "$VALUE" = "d" ] ; then
echo "Installing desktop applications"
echo $(grep -vE "^\s*#" desktop.txt | tr "\n" " ")
sudo apt-get update;sudo apt-get upgrade;sudo apt-get install $(grep -vE "^\s*#" desktop.txt | tr "\n" " ")
sudo apt-get install $(grep -vE "^\s*#" desktop.txt | tr "\n" " ")
fi
if [ "$VALUE" = "t" ] ; then
echo "Syncing tmux"