scripts/gemsets in rvm-0.1.44 vs scripts/gemsets in rvm-0.1.45
- old
+ new
@@ -174,18 +174,18 @@
$rvm_scripts_path/log "error" "Unable to expand ruby '$destination_ruby'"
return 1
fi
if [[ -d "$source_path" ]] ; then
- if [[ ! -d "$destination_path" ]] ; then mkdir -p $destination_path ; fi
+ [[ ! -d "$destination_path" ]] && mkdir -p "$destination_path"
$rvm_scripts_path/log "info" "Copying gemset from $source_ruby to $destination_ruby"
- for dir in bin doc gems specifications ; do
+ for dir in bin doc gems specifications cache ; do
mkdir -p "$destination_path/$dir"
cp -Rf "$source_path/$dir" "$destination_path/"
done
$rvm_scripts_path/log "info" "Making gemset for $destination_ruby pristine."
- (rvm "$destination_ruby" ; gemset_pristine)
+ __rvm_run_with_env "gemset.pristine" "$destination_ruby" "rvm gemset pristine"
else
$rvm_scripts_path/log "error" "Gems directory does not exist for $source_path ($source_path)"
return 1
fi
}
@@ -470,12 +470,12 @@
elif [[ "list" = "$action" ]] ; then
gemset_list
elif [[ "gemdir" = "$action" ]] || [[ "gempath" = "$action" ]] || [[ "gemhome" = "$action" ]] || [[ "home" = "$action" ]] || [[ "path" = "$action" ]] || [[ "version" = "$action" ]] ; then
gemset_info
elif [[ "install" = "$action" ]] ; then
- gem_install $*
+ gem_install "$@"
elif [[ "pristine" = "$action" ]] ; then
- gemset_pristine $*
+ gemset_pristine "$@"
elif [[ "initial" = "$action" ]] ; then
gemset_initial
elif [[ "prune" = "$action" ]] ; then
gemset_prune
elif [[ "update" = "$action" ]]; then