# file: updateExecutaveis.sh cd /d/ echo "--- check if repo exists ---" if [ -d /d/executaveis/.git ]; then echo "--- pull ---" cd /d/executaveis/ git fetch --all git reset --hard origin/master else echo "--- clone ---" git clone ssh://git@prontolavar.no-ip.org:16501/srv/git/executaveis.git fi