post_install() { echo -e "\033[1mNotice\033[0m" echo "Upgrading your installation..." # some commands here # more commands } post_upgrade() { post_install } post_remove() { } op=$1 shift $op $*