diff options
author | davor <vorgrimmlerdavid@gmx.de> | 2011-11-21 12:57:53 +0100 |
---|---|---|
committer | davor <vorgrimmlerdavid@gmx.de> | 2011-11-21 12:57:53 +0100 |
commit | d2bf668856c63e2682aba0df3a504a1bac6ec7f3 (patch) | |
tree | f34b9801f80eead3237fdc3fdf3cd09f17f3a325 /ruby.sh | |
parent | d231bd32f9be394119fa877b1b059a79986ee050 (diff) |
Installer stores tmp files in $HOME/tmp and backups the existing system.
Diffstat (limited to 'ruby.sh')
-rwxr-xr-x | ruby.sh | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |