Permalink
Browse files

allow override of bootstrap ruby download location, delete target fil…

…e if it already exists
  • Loading branch information...
1 parent 22b902a commit bf8dfb94bdef0181f4c68cf36828531f6e6d134d @thewoolleyman committed Aug 18, 2009
Showing with 4 additions and 1 deletion.
  1. +4 −1 bootstrap_ruby.sh
View
@@ -1,7 +1,10 @@
#!/bin/bash
# A wrapper script to download and run bootstrap_ruby.sh, see http://github.com/thewoolleyman/bootstrap-ruby
+
+if [ -z $BOOTSTRAP_RUBY_GIT_DOWNLOAD_URL ]; then BOOTSTRAP_RUBY_GIT_DOWNLOAD_URL='http://github.com/thewoolleyman/bootstrap-ruby/raw/master'; fi
-wget -O /tmp/bootstrap_ruby.sh http://github.com/thewoolleyman/bootstrap-ruby/raw/master/bootstrap_ruby.sh
+sudo rm -f /tmp/bootstrap_ruby.sh
+wget -O /tmp/bootstrap_ruby.sh $BOOTSTRAP_RUBY_GIT_DOWNLOAD_URL/bootstrap_ruby.sh
chmod a+x /tmp/bootstrap_ruby.sh
NO_RUBY_PROGRAM_SUFFIX=true /tmp/bootstrap_ruby.sh # Disable Ruby program suffix until Rubygems issues with non-default format-executables are resolved.

0 comments on commit bf8dfb9

Please sign in to comment.