scripts/wrapper in rvm-0.1.40 vs scripts/wrapper in rvm-0.1.41
- old
+ new
@@ -5,11 +5,11 @@
unset rvm_default_flag rvm_wrapper_name
source "$rvm_scripts_path/base"
full_binary_name() {
- echo "$binary_name" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//'
+ echo "$binary_name" | __rvm_strip
}
wrap() {
mkdir -p "$(dirname "$file_name")"
rm -f "$file_name"
@@ -59,10 +59,10 @@
ruby_string="$1"; shift
prefix="$1"
if [[ -n "$1" ]]; then shift; fi
-binaries="$(echo "$@" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')"
+binaries="$(echo "$@" | __rvm_strip)"
if [[ 'system' == '$ruby_string' ]]; then
$rvm_scripts_path/log "error" "Wrapper can't be called with system rubies - sorry!"
exit 1
fi