#!/bin/bash update() { git pull origin master } if [ $1 = "update" ]; then update fi echo "end of script"