rvm 0.1.45 → 0.1.46

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,6 +13,7 @@ else
13
13
  exit 1
14
14
  fi
15
15
 
16
+ [[ -s "$rvm_environments_path/default" ]] && source "$rvm_environments_path/default"
16
17
  rvm load-rvmrc > /dev/null 2>&1
17
18
 
18
19
  exec ruby "$@"
@@ -7,11 +7,11 @@ fi
7
7
 
8
8
  rvm_path="${rvm_path:-$HOME/.rvm}"
9
9
 
10
- [ -d "$rvm_path/src" ] || mkdir -p $rvm_path/src/
10
+ [ -d "$rvm_path/src" ] || \mkdir -p $rvm_path/src/
11
11
 
12
12
  cd "$rvm_path/src"
13
13
 
14
- [ -d ./rvm ] && rm -rf ./rvm/
14
+ [ -d ./rvm ] && \rm -rf ./rvm/
15
15
 
16
16
  git clone --depth 1 git://github.com/wayneeseguin/rvm.git ||
17
17
  git clone http://github.com/wayneeseguin/rvm.git
@@ -6,7 +6,7 @@ if [[ -z "$rvm_ignore_rvmrc" ]]; then
6
6
  fi
7
7
 
8
8
  rvm_path="${rvm_path:-$HOME/.rvm}"
9
- mkdir -p $rvm_path/src/
9
+ \mkdir -p $rvm_path/src/
10
10
  cd $rvm_path/src
11
11
 
12
12
  stable_version=$(curl -B http://rvm.beginrescueend.com/releases/stable-version.txt 2>/dev/null)
data/config/db CHANGED
@@ -18,10 +18,10 @@ ruby_1.8_url=ftp://ftp.ruby-lang.org/pub/ruby/1.8
18
18
  ruby_1.9_url=ftp://ftp.ruby-lang.org/pub/ruby/1.9
19
19
  ruby_2.0_url=ftp://ftp.ruby-lang.org/pub/ruby/2.0
20
20
  ruby_1.9.1_patch_level=378
21
- ruby_1.9.2_patch_level=rc2
21
+ ruby_1.9.2_patch_level=0
22
22
  ruby_1.8.5_patch_level=231
23
23
  ruby_1.8.6_patch_level=399
24
- ruby_1.8.7_patch_level=299
24
+ ruby_1.8.7_patch_level=302
25
25
  rubygems_version=1.3.7
26
26
  rubygems_1.3.5_url=http://rubyforge.org/frs/download.php/60718
27
27
  rubygems_1.3.6_url=http://rubyforge.org/frs/download.php/69365
@@ -46,7 +46,7 @@ macruby_version=0.6
46
46
  macruby_url=http://www.macruby.org/files
47
47
  macruby_repo_url=git://git.macruby.org/macruby/MacRuby.git
48
48
  macruby_nightly_url=http://www.macruby.org/files/nightlies/macruby_nightly-latest.pkg
49
- maglev_version=23913
49
+ maglev_version=24067
50
50
  maglev_url=http://glass-downloads.gemstone.com/maglev
51
51
  maglev_repo_url=git://github.com/MagLev/maglev.git
52
52
  shyouhei_repo_url=git://github.com/shyouhei/ruby.git
@@ -1,7 +1,7 @@
1
1
  # MRI Rubies
2
2
  (ruby-)1.8.6(-p399)
3
3
  (ruby-)1.8.6-head
4
- (ruby-)1.8.7(-p299)
4
+ (ruby-)1.8.7(-p302)
5
5
  (ruby-)1.8.7-head
6
6
  (ruby-)1.9.1-p243
7
7
  (ruby-)1.9.1-p376
@@ -9,7 +9,7 @@
9
9
  (ruby-)1.9.1-head
10
10
  (ruby-)1.9.2-preview1
11
11
  (ruby-)1.9.2-preview3
12
- (ruby-)1.9.2(-rc2)
12
+ (ruby-)1.9.2(-p0)
13
13
  (ruby-)1.9.2-head
14
14
  ruby-head
15
15
 
@@ -31,7 +31,7 @@ ree-1.8.6-head
31
31
  ree-1.8.7-head
32
32
 
33
33
  # MagLev
34
- maglev(-23913)
34
+ maglev(-24067)
35
35
  maglev-head
36
36
 
37
37
  # Shyouhei head, the default mput
data/config/md5 CHANGED
@@ -16,6 +16,7 @@ ruby-1.8.7-p174.tar.gz=18dcdfef761a745ac7da45b61776afa5
16
16
  ruby-1.8.7-p248.tar.gz=60a65374689ac8b90be54ca9c61c48e3
17
17
  ruby-1.8.7-p249.tar.gz=d7db7763cffad279952eb7e9bbfc221c
18
18
  ruby-1.8.7-p299.tar.gz=43533980ee0ea57381040d4135cf9677
19
+ ruby-1.8.7-p302.tar.gz=a6a9e37079ed8cf8726b455dad3de939
19
20
  ruby-1.9.1-p129.tar.gz=c71f413514ee6341c627be2957023a5c
20
21
  ruby-1.9.1-p243.tar.gz=515bfd965814e718c0943abf3dde5494
21
22
  ruby-1.9.1-p376.tar.gz=ebb20550a11e7f1a2fbd6fdec2a3e0a3
@@ -26,6 +27,7 @@ ruby-1.9.2-preview1.tar.gz=e2b8cdbf300f53472be09699a5837fd1
26
27
  ruby-1.9.2-preview3.tar.gz=209e59f3495a5503fa948c2732f1d705
27
28
  ruby-1.9.2-rc1.tar.gz=fdedd5b42ae89a9a46797823ad2d9acf
28
29
  ruby-1.9.2-rc2.tar.gz=d12cd39eee4d99bc54b52aba5a0ba4e1
30
+ ruby-1.9.2-p0.tar.gz=755aba44607c580fddc25e7c89260460
29
31
  ruby-enterprise-1.8.6-20090610.tar.gz=0bf66ee626918464a6eccdd83c99d63a
30
32
  ruby-enterprise-1.8.7-2009.10.tar.gz=3727eef7b6b1b2f31db7d091328d966e
31
33
  ruby-enterprise-1.8.7-20090928.tar.gz=ae00018ce89d95419dfde370fcd485ac
@@ -50,7 +52,7 @@ zlib-1.2.3.tar.gz=debc62758716a169df9f62e6ab2bc634
50
52
  curl-7.19.7.tar.gz=ecb2e37e45c9933e2a963cabe03670ab
51
53
  pkg-config-0.23.tar.gz=d922a88782b64441d06547632fd85744
52
54
  ironruby-1.0.zip=7a92888837b3507355ed391dbfc0ab83
53
- GemStone-23913.Darwin-i386.tar.gz=8115f487253aa09d38b303e0e49c62b3
54
- GemStone-23913.Linux-x86_64.tar.gz=bd7832caef3768eb49d39e433366fc2e
55
- MagLev-23913.Darwin-i386.tar.gz=35c60bfcea8d84e64af01c024c548019
56
- MagLev-23913.Linux-x86_64.tar.gz=ea8e1096293a652a8a9b00cbe2eda12d
55
+ GemStone-24067.Darwin-i386.tar.gz=89bdf43e357202266dc8e342f2050855
56
+ GemStone-24067.Linux-x86_64.tar.gz=91a8d99b46e934c5988bc7dd64e7a030
57
+ MagLev-24067.Darwin-i386.tar.gz=76f0c47c0f64ae90f90573aa1280368f
58
+ MagLev-24067.Linux-x86_64.tar.gz=e2a838720a7dc2417ffe98681c3b4a09
@@ -1,15 +1,23 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
+ __rvm_system_wide_permissions() {
4
+ [[ -z "$1" ]] && return 1
5
+ chown -R root:"$rvm_group_name" "$1"
6
+ chmod -R g+w "$1"
7
+ [[ -d "$1" ]] && find "$1" -type d | xargs -n1 chmod g+s
8
+ }
9
+
3
10
  # Require root to install it.
4
11
  if [[ "$(whoami)" != "root" ]]; then
5
12
  echo "Please rerun this installer as root." >&2
6
13
  exit 1
7
- fi
8
-
9
14
  # Check for the presence of git.
10
- if ! command -v git >/dev/null 2>&1 ; then
15
+ elif ! command -v git >/dev/null 2>&1 ; then
11
16
  echo "Please ensure git is installed and available in PATH to continue." >&2
12
17
  exit 1
18
+ elif [[ "$(uname)" != "Linux" ]]; then
19
+ echo "The rvm system wide installer is currently Linux only." >&2
20
+ exit 1
13
21
  fi
14
22
 
15
23
  # Load the rvm config.
@@ -21,10 +29,24 @@ fi
21
29
  rvm_path="${rvm_path:-"/usr/local/rvm"}"
22
30
  export rvm_selfcontained=0
23
31
 
24
- mkdir -p "$rvm_path/src/"
32
+ rvm_group_name="${rvm_group_name:-"rvm"}"
33
+ if cat /etc/group | cut -d: -f1 | grep -q "^${rvm_group_name}$"; then
34
+ echo "Group exists, proceeding with installation."
35
+ else
36
+ echo "Creating the group '$rvm_group_name'"
37
+ groupadd -f "$rvm_group_name"
38
+ fi
39
+ echo "Adding $(whoami) the '$rvm_group_name'"
40
+ usermod -a -G "$rvm_group_name" "$(whoami)"
41
+
42
+ echo "Creating the destination dir and making sure the permissions are correct"
43
+ \mkdir -p "$rvm_path"
44
+ __rvm_system_wide_permissions "$rvm_path"
45
+
46
+ \mkdir -p "$rvm_path/src/"
25
47
  builtin cd "$rvm_path/src"
26
48
 
27
- rm -rf ./rvm/
49
+ \rm -rf ./rvm/
28
50
 
29
51
  git clone --depth 1 git://github.com/wayneeseguin/rvm.git || git clone http://github.com/wayneeseguin/rvm.git
30
52
 
@@ -33,37 +55,31 @@ builtin cd rvm
33
55
  echo "Running the install script."
34
56
  bash ./scripts/install "$@"
35
57
 
36
- rvm_group_name="${rvm_group_name:-"rvm"}"
37
-
38
- if cat /etc/group | cut -d: -f1 | grep -q "^${rvm_group_name}$"; then
39
- echo "Group exists, proceeding with installation."
40
- else
41
- echo "Creating the group '$rvm_group_name'"
42
- groupadd -f "$rvm_group_name"
43
- fi
44
- echo "Adding root the '$rvm_group_name'"
45
- usermod -a -G "$rvm_group_name" "$(whoami)"
58
+ __rvm_system_wide_permissions "$rvm_path"
46
59
 
47
60
  echo "Setting up group permissions"
48
- for dir in rvm bin share/man; do
49
- chown -R root:"$rvm_group_name" /usr/local/$dir
50
- chmod -R g+w /usr/local/$dir
61
+ rvm_parent_dir="$(dirname "$rvm_path")"
62
+ for dir in bin share/man; do
63
+ __rvm_system_wide_permissions "$rvm_parent_dir/$dir"
51
64
  done; unset dir
52
65
 
53
66
  echo "Generating system wide rvmrc"
54
- rm -f /etc/rvmrc
55
- touch /etc/rvmrc
67
+ \rm -f /etc/rvmrc
68
+ \touch /etc/rvmrc
56
69
  cat > /etc/rvmrc <<END_OF_RVMRC
57
70
  # Setup default configuration for rvm.
58
- umask g+w
59
- export rvm_selfcontained=0
60
- export rvm_prefix="/usr/local/"
71
+ # If an rvm install exists in the home directory, don't load this.'
72
+ if [[ ! -s "\$HOME/.rvm/scripts/rvm" ]]; then
73
+ umask g+w
74
+ export rvm_selfcontained=0
75
+ export rvm_prefix="$rvm_parent_dir/"
76
+ fi
61
77
  END_OF_RVMRC
62
78
 
63
- echo "Generating /usr/local/lib/rvm to load rvm"
64
- rm -f /usr/local/lib/rvm
65
- touch /usr/local/lib/rvm
66
- cat > /usr/local/lib/rvm <<END_OF_RVM_SH
79
+ echo "Generating $rvm_parent_dir/lib/rvm to load rvm"
80
+ \rm -f "$rvm_parent_dir/lib/rvm"
81
+ \touch "$rvm_parent_dir/lib/rvm"
82
+ cat > "$rvm_parent_dir/lib/rvm" <<END_OF_RVM_SH
67
83
  # Automatically source rvm
68
84
  if [[ -s "\$HOME/.rvm/scripts/rvm" ]]; then
69
85
  source "\$HOME/.rvm/scripts/rvm"
@@ -74,10 +90,10 @@ END_OF_RVM_SH
74
90
 
75
91
  echo "Correct permissions on rvmrc and the rvm loader"
76
92
  # Finally, ensure the rvmrc is owned by the group.
77
- for file in /etc/rvmrc /usr/local/lib/rvm ; do
78
- chown root:"$rvm_group_name" "$file"
79
- chmod g+w "$file"
93
+ for file in /etc/rvmrc "$rvm_parent_dir/lib/rvm" ; do
94
+ __rvm_system_wide_permissions "$file"
80
95
  done; unset file
81
96
 
82
- echo "To use, source '/usr/local/lib/rvm' to your shell profile."
97
+ echo "RVM is now installed. To use, source '$rvm_parent_dir/lib/rvm' to your shell profile."
83
98
 
99
+ unset rvm_parent_dir
data/install CHANGED
@@ -96,8 +96,8 @@ rvm_src_path="${rvm_src_path:-"$rvm_path/src"}"
96
96
  rvm_log_path="${rvm_log_path:-"$rvm_path/log"}"
97
97
 
98
98
  if [[ "$rvm_selfcontained" = "0" ]] ; then
99
- rvm_bin_path="${rvm_bin_path:-"$rvm_prefix/bin"}"
100
- rvm_man_path="${rvm_man_path:-"$rvm_prefix/share/man"}"
99
+ rvm_bin_path="${rvm_bin_path:-"${rvm_prefix}bin"}"
100
+ rvm_man_path="${rvm_man_path:-"${rvm_prefix}share/man"}"
101
101
  rvm_rc_files="${rvm_rc_files:-"/etc/profile /etc/zshenv"}"
102
102
  else
103
103
  rvm_man_path="${rvm_man_path:-"$rvm_path/man"}"
@@ -126,11 +126,11 @@ fi
126
126
 
127
127
  spinner
128
128
 
129
- mkdir -p "$rvm_archives_path" "$rvm_src_path" "$rvm_log_path" "$rvm_bin_path" "$rvm_gems_path" "$rvm_rubies_path" "$rvm_config_path" "$rvm_hooks_path" "$rvm_tmp_path"
129
+ \mkdir -p "$rvm_archives_path" "$rvm_src_path" "$rvm_log_path" "$rvm_bin_path" "$rvm_gems_path" "$rvm_rubies_path" "$rvm_config_path" "$rvm_hooks_path" "$rvm_tmp_path"
130
130
 
131
131
  for file in README LICENCE ; do
132
132
  spinner
133
- cp -f "$source_path/$file" "$rvm_path/"
133
+ \cp -f "$source_path/$file" "$rvm_path/"
134
134
  done
135
135
 
136
136
  #
@@ -138,22 +138,22 @@ done
138
138
  #
139
139
  for dir_name in config scripts examples lib hooks help patches; do
140
140
  spinner
141
- mkdir -p "$rvm_path/$dir_name"
141
+ \mkdir -p "$rvm_path/$dir_name"
142
142
  if [[ -d "$source_path/$dir_name" ]] ; then
143
- cp -Rf "$source_path/$dir_name" "$rvm_path"
143
+ \cp -Rf "$source_path/$dir_name" "$rvm_path"
144
144
  fi
145
145
  done ; unset dir_name
146
146
 
147
147
  spinner
148
148
  if [[ ! -s "$rvm_config_path/user" ]] ; then
149
- mkdir -p "$rvm_config_path/"
149
+ \mkdir -p "$rvm_config_path/"
150
150
  echo '# Users settings file, overrides db file settings and persists across installs.' >> $rvm_config_path/user
151
151
  fi
152
152
 
153
153
  scripts=("monitor" "match" "log" "install" "color" "db" "fetch" "log" "set" "package")
154
154
  for script_name in "${scripts[@]}" ; do
155
155
  spinner
156
- chmod +x $rvm_scripts_path/$script_name
156
+ chmod +x "$rvm_scripts_path/$script_name" 2>/dev/null # Hide errors.
157
157
  done
158
158
 
159
159
  #
@@ -162,8 +162,8 @@ done
162
162
  # Cleanse and purge...
163
163
  for file in rvm-prompt rvm rvmsudo rvm-shell rvm-auto-ruby ; do
164
164
  spinner && perl -e 'sleep 0.2'
165
- rm -f "$rvm_bin_path/$file"
166
- cp -f "$source_path/binscripts/$file" $rvm_bin_path/
165
+ \rm -f "$rvm_bin_path/$file"
166
+ \cp -f "$source_path/binscripts/$file" $rvm_bin_path/
167
167
  done
168
168
  spinner
169
169
  chmod +x $rvm_bin_path/*
@@ -176,7 +176,7 @@ if [[ -n "$rvm_auto_flag" ]] ; then
176
176
  printf "Checking rc files... ($rvm_rc_files)"
177
177
  if [[ "$rvm_loaded_flag" != "1" ]] ; then
178
178
  for rcfile in $(echo $rvm_rc_files) ; do
179
- if [[ ! -f $rcfile ]] ; then touch $rcfile ; fi
179
+ if [[ ! -f $rcfile ]] ; then \touch $rcfile ; fi
180
180
  if [[ -s "$HOME/.profile" ]] ; then
181
181
  if ! grep -q '.profile' "$rcfile" ; then
182
182
  echo " Adding 'if [[ -s \$HOME/.profile ]] ; then source \$HOME ; fi' to $rcfile."
@@ -196,26 +196,26 @@ fi
196
196
  #
197
197
  spinner
198
198
  if [[ -d gemsets/ ]] ; then
199
- mkdir -p "$rvm_gemsets_path"
199
+ \mkdir -p "$rvm_gemsets_path"
200
200
  for gemset_file in $(cd gemsets ; find . -iname '*.gems' | sed 's/^\.\///') ; do
201
201
  destination="$rvm_gemsets_path/$gemset_file"
202
202
  destination_path="$(dirname "$destination")"
203
203
  if [[ ! -s "$destination" ]] ; then
204
- mkdir -p "$destination_path"
205
- cp "gemsets/$gemset_file" "$destination"
204
+ \mkdir -p "$destination_path"
205
+ \cp "gemsets/$gemset_file" "$destination"
206
206
  fi
207
207
  done ; unset destination destination_path gemset_file
208
208
  fi
209
209
 
210
210
  spinner
211
211
  if [[ -d patchsets/ ]] ; then
212
- mkdir -p "$rvm_patchsets_path"
212
+ \mkdir -p "$rvm_patchsets_path"
213
213
  for patchset_file in $(cd patchsets ; find . -iname '*' | sed 's/^\.\///') ; do
214
214
  destination="$rvm_patchsets_path/$patchset_file"
215
215
  destination_path="$(dirname "$destination")"
216
216
  if [[ ! -s "$destination" ]] ; then
217
- mkdir -p "$destination_path"
218
- cp "patchsets/$patchset_file" "$destination"
217
+ \mkdir -p "$destination_path"
218
+ \cp "patchsets/$patchset_file" "$destination"
219
219
  fi
220
220
  done ; unset destination destination_path patchset_file
221
221
  fi
@@ -224,7 +224,7 @@ fi
224
224
  # Migrate ~/.rvm/ruby-X,jruby-X,... to ~/.rvm/rubies/ for 0.1.0.
225
225
  #
226
226
  rvm_rubies_path="${rvm_rubies_path:-"$rvm_path/rubies"}"
227
- mkdir -p "$rvm_rubies_path/"
227
+ \mkdir -p "$rvm_rubies_path/"
228
228
  spinner
229
229
  for ruby in $rvm_path/ruby-* $rvm_path/jruby-* $rvm_path/mput-* $rvm_path/rbx-* $rvm_path/maglev-* $rvm_path/ree-* ; do
230
230
  if [[ -d "$ruby" ]] ; then
@@ -280,7 +280,7 @@ if [[ -s "$rvm_config_path/default" ]]; then
280
280
  $rvm_scripts_path/alias create default "$original_version" &> /dev/null
281
281
  fi
282
282
  unset original_version
283
- rm -rf "$rvm_config_path/default"
283
+ \rm -rf "$rvm_config_path/default"
284
284
  fi
285
285
 
286
286
  #
@@ -288,14 +288,14 @@ fi
288
288
  #
289
289
 
290
290
  printf "\n Correct permissions for base binaries in $rvm_bin_path..."
291
- mkdir -p $rvm_bin_path
291
+ \mkdir -p $rvm_bin_path
292
292
  for file in rvm rvmsudo rvm-shell rvm-auto-ruby; do
293
293
  [[ -s "$rvm_bin_path/$file" ]] && chmod +x "$rvm_bin_path/$file"
294
294
  done; unset file
295
295
  printf "\n Copying manpages into place."
296
296
  for man_file in $(\ls "$install_source_path/man"); do
297
- rm -rf "$rvm_man_path/$man_file"
298
- cp -R "$install_source_path/man/$man_file" "$rvm_man_path/"
297
+ \rm -rf "$rvm_man_path/$man_file"
298
+ \cp -R "$install_source_path/man/$man_file" "$rvm_man_path/"
299
299
  done
300
300
 
301
301
  [[ "$upgrade_flag" = 0 ]] && ./scripts/notes
@@ -319,7 +319,7 @@ if [[ "$upgrade_flag" -eq 1 ]] ; then
319
319
  check_rubyopt_conditions
320
320
  printf "\nUpgrade of RVM in $rvm_path/ is complete.\n\n"
321
321
  else
322
- if [[ -z "$rvm_prefix" ]] && [[ "root" != "$(whoami)" ]] ; then
322
+ if [[ "$rvm_selfcontained" = "1" ]] ; then
323
323
  printf "\n$(tput setaf 1)You must now finish the install manually:$(tput sgr0)"
324
324
  printf "\n1) Place the folowing line at the end of your shell's loading files(.bashrc or .bash_profile for bash and .zshrc for zsh), after all path/variable settings:"
325
325
  printf "\n [[ -s \$HOME/.rvm/scripts/rvm ]] && source \$HOME/.rvm/scripts/rvm"
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 1
4
- :patch: 45
4
+ :patch: 46
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rvm}
8
- s.version = "0.1.45"
8
+ s.version = "0.1.46"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Wayne E. Seguin"]
12
- s.date = %q{2010-08-11}
12
+ s.date = %q{2010-08-18}
13
13
  s.default_executable = %q{rvm-install}
14
14
  s.description = %q{Manages Ruby interpreter environments and switching between them.}
15
15
  s.email = %q{wayneeseguin@gmail.com}
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- unset rvm_default_flag rvm_wrapper_name
3
+ unset rvm_default_flag rvm_wrapper_name
4
4
 
5
5
  source $rvm_scripts_path/base
6
6
 
@@ -43,7 +43,7 @@ show_alias() {
43
43
  delete_alias() {
44
44
  echo "Deleting alias: $alias_name"
45
45
  for link in "$rvm_rubies_path/$alias_name" ; do
46
- if [[ -L "$link" ]] ; then rm -f $link ; fi
46
+ if [[ -L "$link" ]] ; then \rm -f $link ; fi
47
47
  done
48
48
  $rvm_scripts_path/db "$rvm_config_path/alias" "$alias_name" "delete"
49
49
  }
@@ -99,7 +99,7 @@ alias_list() {
99
99
  action="$1"
100
100
  alias_name="$2"
101
101
  rvm_environment_identifier="$3"
102
- if [[ ! -f "$rvm_config_path/alias" ]] ; then touch "$rvm_config_path/alias" ; fi
102
+ if [[ ! -f "$rvm_config_path/alias" ]] ; then \touch "$rvm_config_path/alias" ; fi
103
103
  if [[ ! -z "$alias_name" ]] ; then
104
104
  rvm_alias="$($rvm_scripts_path/db "$rvm_config_path/alias" "$alias_name")"
105
105
  fi
@@ -13,7 +13,7 @@ cleanup() {
13
13
  eval "current_path=\"\$rvm_${cleanup_type}_path\""
14
14
  if [[ -n "$current_path" && -d "$current_path" && "$current_path" != "/" ]]; then
15
15
  $rvm_scripts_path/log "info" "Cleaning up rvm directory '$current_path'"
16
- rm -rf "$current_path"/* >/dev/null 2>&1
16
+ \rm -rf "$current_path"/* >/dev/null 2>&1
17
17
  fi
18
18
  done; unset cleanup_type current_path
19
19
  }
@@ -300,9 +300,9 @@ __rvm_parse_args() {
300
300
  ;;
301
301
 
302
302
  -h|--help|usage) rvm_action=help ;;
303
- -G) path_variable="rvm_gems_path" ; __rvm_set_path_variable ; shift ;;
304
- --source) path_variable="rvm_src_path" ; __rvm_set_path_variable ; shift ;;
305
- --archives) path_variable="rvm_archives_path" ; __rvm_set_path_variable ; shift ;;
303
+ -G) path_variable="rvm_gems_path" ; __rvm_set_path_variable "$1"; shift ;;
304
+ --source) path_variable="rvm_src_path" ; __rvm_set_path_variable "$1"; shift ;;
305
+ --archives) path_variable="rvm_archives_path" ; __rvm_set_path_variable "$1"; shift ;;
306
306
  --make) rvm_ruby_make="$1" ; shift ;;
307
307
  --make-install) rvm_ruby_make_install="$1" ; shift ;;
308
308
  --nice) rvm_niceness="$1" ; shift ;;
@@ -465,7 +465,7 @@ rvm() {
465
465
  if [[ -n "$PS1" ]] ; then export rvm_interactive=1 ; else unset rvm_interactive ; fi
466
466
 
467
467
  if [[ -z "$ZSH_VERSION" ]] ; then
468
- trap 'rm -rf "$rvm_tmp_path/$$" >/dev/null 2>&1' 0 1 2 3 15
468
+ trap '\rm -rf "$rvm_tmp_path/$$" >/dev/null 2>&1' 0 1 2 3 15
469
469
  fi
470
470
 
471
471
  # Check that this is the current version.
@@ -483,7 +483,7 @@ rvm() {
483
483
  export rvm_path rvm_rubies_path rvm_scripts_path rvm_archives_path rvm_src_path rvm_patches_path rvm_patches_path rvm_patchsets_path rvm_log_path rvm_bin_path rvm_gems_path rvm_config_path rvm_tmp_path rvm_hooks_path rvm_gems_cache_path rvm_gemset_separator
484
484
 
485
485
  result=0
486
-
486
+
487
487
  case "$rvm_action" in
488
488
  use) __rvm_use ; result=$? ;;
489
489
  srcdir) __rvm_source_dir ; result=$? ;;