Skip to content

Instantly share code, notes, and snippets.

@trptcolin
Created January 23, 2009 16:50
Show Gist options
  • Save trptcolin/51076 to your computer and use it in GitHub Desktop.
Save trptcolin/51076 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [[ -z $1 ]]; then
echo "Usage: $0 takes one argument, the project name."
exit 0
else
project=`basename $1`
fi
action="cd /srv/websites/$project; sudo -S rake db:migrate"
echo $action
eval "stty -echo"
eval "ssh svn \"$action\""
eval "stty echo"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment