summaryrefslogtreecommitdiff
path: root/ruby.sh
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2012-03-13 12:13:23 +0100
committerrautenberg <rautenberg@in-silico.ch>2012-03-13 12:13:23 +0100
commit65b517dd4494d730bf5602bd070a59d0044efe5b (patch)
tree7443c67b2813a9f04483ba8c59f0fd8c2a798923 /ruby.sh
parentfe3e3f88762df7cc57df76fe4d2a10602a3daa73 (diff)
parent803ae809cc5092e082ee527dac6eb25c1a63dcf3 (diff)
Merge branch 'release/v3.1.0'v3.1.0
Diffstat (limited to 'ruby.sh')
-rwxr-xr-xruby.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/ruby.sh b/ruby.sh
index a1b8cbe..2e53384 100755
--- a/ruby.sh
+++ b/ruby.sh
@@ -21,7 +21,7 @@ if [ ! -e "$WGET" ]; then
fi
# Pkg
-LOG="/tmp/`basename $0`-log.txt"
+LOG="$HOME/tmp/`basename $0`-log.txt"
echo
echo "Ruby Enterprise edition ('$RUBY_DEST', '$LOG')."
@@ -38,13 +38,13 @@ else
fi
if [ ! $RUBY_DONE ]; then
- cd /tmp
+ cd $HOME/tmp
URI="http://rubyenterpriseedition.googlecode.com/files/$RUBY_VER.tar.gz"
- if ! [ -d "/tmp/$RUBY_VER" ]; then
+ if ! [ -d "$HOME/tmp/$RUBY_VER" ]; then
cmd="$WGET $URI" && run_cmd "$cmd" "Download"
cmd="tar xzf $RUBY_VER.tar.gz" && run_cmd "$cmd" "Unpack"
fi
- cmd="sh /tmp/$RUBY_VER/installer --dont-install-useful-gems --no-dev-docs --auto=$RUBY_DEST" && run_cmd "$cmd" "Install"
+ cmd="sh $HOME/tmp/$RUBY_VER/installer --dont-install-useful-gems --no-dev-docs --auto=$RUBY_DEST" && run_cmd "$cmd" "Install"
fi