rvm 1.0.1 → 1.0.2

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.
@@ -14,16 +14,17 @@ wrap() {
14
14
  \mkdir -p "$(dirname "$file_name")"
15
15
  \rm -f "$file_name"
16
16
 
17
- echo "#!/usr/bin/env sh" > "$file_name"
18
- echo "if [ -s \"${rvm_environments_path}/${environment_identifier}\" ] ; then" >> "$file_name"
19
- echo " \\. \"${rvm_environments_path}/${environment_identifier}\"" >> "$file_name"
20
- echo " exec $binary_name \"\$@\"" >> "$file_name"
21
- echo "else" >> $file_name
22
- echo " echo \"ERROR: Missing RVM environment file: '${rvm_environments_path}/${environment_identifier}'\"" >> $file_name
23
- echo " exit 1" >> $file_name
24
- echo "fi" >> $file_name
25
-
26
- if [[ -f $file_name ]] ; then chmod +x $file_name ; fi
17
+ printf "#!/usr/bin/env sh\n
18
+ if [ -s \"${rvm_environments_path}/${environment_identifier}\" ] ; then
19
+ \\. \"${rvm_environments_path}/${environment_identifier}\"
20
+ exec $binary_name \"\$@\"
21
+ else
22
+ echo \"ERROR: Missing RVM environment file: '${rvm_environments_path}/${environment_identifier}'\"
23
+ exit 1
24
+ fi
25
+ " > "$file_name"
26
+
27
+ if [[ -f "$file_name" ]] ; then chmod +x "$file_name" ; fi
27
28
  }
28
29
 
29
30
  symlink_binary() {
@@ -41,7 +42,7 @@ wrap_binary() {
41
42
  if [[ "$override_check" = "1" ]] || command -v $binary_name > /dev/null; then
42
43
  wrap
43
44
  else
44
- $rvm_scripts_path/log "error" "Binary '$binary_name' not found in path."
45
+ "$rvm_scripts_path/log" "error" "Binary '$binary_name' not found in path."
45
46
  return 1
46
47
  fi
47
48
  }
@@ -53,18 +54,12 @@ usage() {
53
54
  }
54
55
 
55
56
  # Empty ruby string: show usage and exit.
56
-
57
- if [[ -z "$1" ]]; then
58
- usage
59
- exit 1
60
- fi
57
+ if [[ -z "$1" ]]; then usage ; exit 1 ; fi
61
58
 
62
59
  ruby_string="$1"; shift
63
-
64
60
  override_check=0
65
61
  prefix="$1"
66
62
  [[ "$#" -gt 0 ]] && shift
67
-
68
63
  binaries="$(echo "$@" | __rvm_strip)"
69
64
 
70
65
  # Default the list of binaries to those we use regularily.
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: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
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-08-27 00:00:00 -04:00
18
+ date: 2010-09-03 00:00:00 -04:00
19
19
  default_executable: rvm-install
20
20
  dependencies: []
21
21
 
@@ -137,7 +137,6 @@ files:
137
137
  - scripts/maglev
138
138
  - scripts/man
139
139
  - scripts/manage
140
- - scripts/manpages
141
140
  - scripts/match
142
141
  - scripts/md5
143
142
  - scripts/migrate
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- source "$rvm_scripts_path/initialize"
4
-
5
- # Take if a semicolon is encountered at the end of the
6
- # manpath env variable, man also processes the usual,
7
- # generated manpaths as well as the variable contents.
8
- export MANPATH="${MANPATH}:${rvm_man_path}"