#!/bin/bash

###################################
############ by Sthope ############
################################### 

## nano ~/.bashrc
## and add this to the end of the file: export PATH=$PATH:~/bin
## sudo chmod +x ~/bin/*;su -l $USER


#### USAGE
# Type plsupgrade to update and upgrade or type plsupgrade get APP_NAME to install some app (max 9)
# example: plsupgrade get kodi vlc openssh-server

sudo apt-get update
sudo apt-get upgrade -y

case $1 in
  'get') if [ "$1" = get ]; then
         sudo apt-get install -y $2 $3 $4 $5 $6 $7 $8 $9
        else
         echo done
        fi;;
     *) exit 1;; #It is good practice to throw a code, hence allowing $? check
esac