Skip to content

Commit

Permalink
Run through rbenv in the default ruby.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathie committed Apr 23, 2012
1 parent 3c6643a commit cd991f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/gh-backup
@@ -1,5 +1,11 @@
#!/bin/sh

eval "$(rbenv init -)"

function rbenv_global_exec() {
(rbenv shell $(rbenv global); exec $*)
}

for i in mathie fac scotlandonrails rubaidh tayeco; do
echo "Backup up organisation ${i}:"
rbenv_global_exec github-backup ${i} ~/Dropbox/Personal/Backups/GitHub/${i}
Expand Down

0 comments on commit cd991f5

Please sign in to comment.