#!/bin/bash DEPLOYPATH=`cat config/deploy-path` if [ -s config/deploy-pass ] then sshpass -f config/deploy-pass rsync -urpP --delete http/ $DEPLOYPATH else rsync -urpP --delete http/ $DEPLOYPATH fi