post_install() { echo -e "\033[1mNotice\033[0m" echo "Upgrading your installation..." # some commands here # more commands } post_upgrade() { post_install } post_remove() { #functions break if there isn't something in them echo "nothing here" > /dev/null } op=$1 shift $op $*