Update deploy.sh

add update as function