scripts/wrapper in rvm-1.0.10 vs scripts/wrapper in rvm-1.0.11

- old
+ new

@@ -32,30 +32,33 @@ rm -f "$file_name" if [[ "root" = "$USER" ]] ; then path="${rvm_path:-"/usr/local/rvm"}" else - path="\$HOME/.rvm" + path="$HOME/.rvm" fi printf "#!/usr/bin/env bash if [[ -s \"$path/environments/${environment_identifier}\" ]] ; then \\. \"$path/environments/${environment_identifier}\" exec $binary_name \"\$@\" else - echo \"ERROR: Missing RVM environment file: '$path/environments/${environment_identifier}'\" + echo \"ERROR: Missing RVM environment file: '$path/environments/${environment_identifier}'\" >&2 exit 1 fi " > "$file_name" - if [[ -f "$file_name" ]] ; then chmod +x "$file_name" ; fi + if [[ -f "$file_name" ]] ; then + chmod +x "$file_name" + fi return 0 else - "$rvm_path/scripts/log" "error" "wrap() : file_name unset variable." + "$rvm_path/scripts/log" "error" \ + "wrap() : file_name unkown variable for wrap()." return 1 fi }