Removed sudo apt-get update;sudo apt-get upgrade from -d and -s flags
This commit is contained in:
parent
c163b426ee
commit
c8dade27e8
4
sync.sh
4
sync.sh
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user