rvm 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,8 +11,8 @@ full_binary_name() {
11
11
  }
12
12
 
13
13
  wrap() {
14
- \mkdir -p "$(dirname "$file_name")"
15
- \rm -f "$file_name"
14
+ mkdir -p "$(dirname "$file_name")"
15
+ rm -f "$file_name"
16
16
 
17
17
  printf "#!/usr/bin/env sh\n
18
18
  if [ -s \"${rvm_environments_path}/${environment_identifier}\" ] ; then
@@ -32,7 +32,7 @@ symlink_binary() {
32
32
  # We first check if we can wrap the binary and if we were able to,
33
33
  # we then symlink it into place.
34
34
  if wrap_binary && [[ -f "$file_name" ]]; then
35
- \rm -f "${rvm_bin_path}/${prefix}_${binary_name}"
35
+ rm -f "${rvm_bin_path}/${prefix}_${binary_name}"
36
36
  ln -fs "$file_name" "${rvm_bin_path}/${prefix}_${binary_name}"
37
37
  fi
38
38
  }
@@ -56,9 +56,9 @@ usage() {
56
56
  # Empty ruby string: show usage and exit.
57
57
  if [[ -z "$1" ]]; then usage ; exit 1 ; fi
58
58
 
59
- ruby_string="$1"; shift
59
+ ruby_string="${1:-""}"; shift
60
60
  override_check=0
61
- prefix="$1"
61
+ prefix="${1:-""}"
62
62
  [[ "$#" -gt 0 ]] && shift
63
63
  binaries="$(echo "$@" | __rvm_strip)"
64
64
 
@@ -78,6 +78,7 @@ environment_identifier="$(__rvm_environment_identifier)"
78
78
  # it to the existing wrapper if needed.
79
79
  for binary_name in $binaries; do
80
80
  file_name="${rvm_wrappers_path}/${environment_identifier}/${binary_name}"
81
+
81
82
  if [[ -z "$prefix" ]] ; then
82
83
  override_check=1
83
84
  wrap_binary
@@ -88,20 +89,22 @@ for binary_name in $binaries; do
88
89
  else
89
90
  destination="$rvm_bin_path/${binary_name}-${environment_identifier}"
90
91
  fi
91
- \rm -rf "$destination"
92
+ rm -rf "$destination"
92
93
  ln -nsf "$file_name" "$destination"
93
94
  fi; unset destination
95
+
94
96
  elif [[ "$prefix" == "--no-prefix" ]]; then
95
97
  override_check=1
96
98
  wrap_binary
97
99
  if [[ -f "$file_name" ]]; then
98
100
  destination="$rvm_bin_path/$binary_name"
99
- \rm -rf "$destination"
101
+ rm -rf "$destination"
100
102
  ln -nsf "$file_name" "$destination"
101
103
  fi; unset destination
104
+
102
105
  else
103
106
  symlink_binary
104
- fi ; unset file_name
107
+ fi
105
108
  done
106
109
 
107
110
  exit $?
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rvm
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 4
10
- version: 1.0.4
9
+ - 5
10
+ version: 1.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Wayne E. Seguin
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-06 00:00:00 -04:00
18
+ date: 2010-09-07 00:00:00 -04:00
19
19
  default_executable: rvm-install
20
20
  dependencies: []
21
21
 
@@ -118,6 +118,7 @@ files:
118
118
  - scripts/color
119
119
  - scripts/completion
120
120
  - scripts/db
121
+ - scripts/default
121
122
  - scripts/disk-usage
122
123
  - scripts/docs
123
124
  - scripts/env