scripts/alias in rvm-0.1.45 vs scripts/alias in rvm-0.1.46
- old
+ new
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
-unset rvm_default_flag rvm_wrapper_name
+unset rvm_default_flag rvm_wrapper_name
source $rvm_scripts_path/base
alias_conflicts_with_ruby() {
# If default exists, we should return true.
@@ -41,11 +41,11 @@
}
delete_alias() {
echo "Deleting alias: $alias_name"
for link in "$rvm_rubies_path/$alias_name" ; do
- if [[ -L "$link" ]] ; then rm -f $link ; fi
+ if [[ -L "$link" ]] ; then \rm -f $link ; fi
done
$rvm_scripts_path/db "$rvm_config_path/alias" "$alias_name" "delete"
}
create_alias() {
@@ -97,10 +97,10 @@
}
action="$1"
alias_name="$2"
rvm_environment_identifier="$3"
-if [[ ! -f "$rvm_config_path/alias" ]] ; then touch "$rvm_config_path/alias" ; fi
+if [[ ! -f "$rvm_config_path/alias" ]] ; then \touch "$rvm_config_path/alias" ; fi
if [[ ! -z "$alias_name" ]] ; then
rvm_alias="$($rvm_scripts_path/db "$rvm_config_path/alias" "$alias_name")"
fi
# CLI API: