#!/bin/bash # LOCAL read -p "Update preview from SVN (Y/N)? " -n 1 -r echo if [[ $REPLY =~ ^[Yy]$ ]] ; then echo "updating from svn ..." else echo exit fi ssh -R 8888:svn.adaptainc.com:80 tstfwd@test.adaptainc.com 'bash -s' < ./update-preview-remote.script