scripts/wrapper in rvm-0.1.45 vs scripts/wrapper in rvm-0.1.46
- old
+ new
@@ -9,12 +9,12 @@
full_binary_name() {
echo "$binary_name" | __rvm_strip
}
wrap() {
- mkdir -p "$(dirname "$file_name")"
- rm -f "$file_name"
+ \mkdir -p "$(dirname "$file_name")"
+ \rm -f "$file_name"
echo "#!/usr/bin/env sh" > "$file_name"
echo "if [ -s \"${rvm_environments_path}/${environment_identifier}\" ] ; then" >> "$file_name"
echo " . \"${rvm_environments_path}/${environment_identifier}\"" >> "$file_name"
echo " exec $binary_name \"\$@\"" >> "$file_name"
@@ -29,11 +29,11 @@
symlink_binary() {
# Generate the default wrapper with the given binary name.
# We first check if we can wrap the binary and if we were able to,
# we then symlink it into place.
if wrap_binary && [[ -f "$file_name" ]]; then
- rm -f "${rvm_bin_path}/${prefix}_${binary_name}"
+ \rm -f "${rvm_bin_path}/${prefix}_${binary_name}"
ln -fs "$file_name" "${rvm_bin_path}/${prefix}_${binary_name}"
fi
}
wrap_binary() {
@@ -96,10 +96,10 @@
if [[ "$binary_name" == "ruby" ]] ; then
destination="$rvm_bin_path/$environment_identifier"
else
destination="$rvm_bin_path/${binary_name}-${environment_identifier}"
fi
- rm -rf "$destination"
+ \rm -rf "$destination"
ln -nsf "$file_name" "$destination"
fi; unset destination
else
symlink_binary
fi ; unset file_name