diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-03-29 13:37:53 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-03-29 13:37:53 +0200 |
commit | 43b11aecd665e244e7957c0a83fa836db4168292 (patch) | |
tree | 098e9c3d19cb57faaa85817cebd0d5c8280ff8e7 /ruby.sh | |
parent | e23e1a7f0f04033de1872d2c2e61e244e6208d4c (diff) |
Redis
Diffstat (limited to 'ruby.sh')
-rwxr-xr-x | ruby.sh | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -23,6 +23,14 @@ if [ -n "$1" ]; then RUBY_DEST="$1" fi +echo "This installs Ruby Enterprise edition." +echo "Your installation directory is '$RUBY_DEST'." +echo "A configuration file is created and you are given the option to have it included in your '~.bashrc'." +echo "Press <Return> to continue, or <Ctrl+C> to abort." +read + +DIR="`pwd`" + mkdir "$RUBY_DEST" >/dev/null 2>&1 if [ ! -d "$RUBY_DEST" ]; then echo "Install directory '$RUBY_DEST' is not available! Aborting..." @@ -34,13 +42,7 @@ else fi fi -DIR="`pwd`" if [ ! $RUBY_DONE ]; then - echo "This installs Ruby Enterprise edition." - echo "Your installation directory is '$RUBY_DEST'." - echo "A configuration file is created and you are given the option to have it included in your '~.bashrc'." - echo "Press <Return> to continue, or <Ctrl+C> to abort." - read cd /tmp if ! $WGET -O - "http://rubyenterpriseedition.googlecode.com/files/$RUBY_VER.tar.gz" | tar zxv >/dev/null 2>&1 ; then echo "Download failed! Aborting..." |