scripts/snapshot in rvm-0.1.47 vs scripts/snapshot in rvm-1.0.0

- old
+ new

@@ -61,12 +61,12 @@ $rvm_scripts_path/alias list | awk -F ' => ' '{print $1}' | sort | uniq 2>/dev/null > "$snapshot_alias_name_file" $rvm_scripts_path/list strings | \tr ' ' '\n' | sort | uniq > "$snapshot_ruby_name_file" comm -2 -3 "$snapshot_ruby_name_file" "$snapshot_alias_name_file" > "$snapshot_installable_file" \rm -rf "$snapshot_ruby_name_file" "$snapshot_alias_name_file" - local snapshot_primary_ruby="$(cat "$snapshot_installable_file" | grep '^\(ree\|ruby-1.8.7\)' | grep -v '-head$' | sort -r | head -n1)" - local snapshot_ruby_order="$snapshot_primary_ruby $(cat "$snapshot_installable_file" | grep -v "$snapshot_primary_ruby")" + local snapshot_primary_ruby="$(cat "$snapshot_installable_file" | \grep '^\(ree\|ruby-1.8.7\)' | \grep -v '-head$' | sort -r | head -n1)" + local snapshot_ruby_order="$snapshot_primary_ruby $(cat "$snapshot_installable_file" | \grep -v "$snapshot_primary_ruby")" for snapshot_ruby_name in $snapshot_ruby_order ; do snapshot_install_command="$(__rvm_recorded_install_command "$snapshot_ruby_name")" if [[ -n "$snapshot_install_command" ]]; then echo "rvm install $snapshot_install_command" | sed "s#$rvm_path#'\\\"\$rvm_path\\\"'#" >> "$snapshot_temp_path/install-rubies.sh" else @@ -137,10 +137,10 @@ __error_on_result "$result" "Error importing rubies." && return "$result" export rvm_create_flag=1 $rvm_scripts_path/log "info" "Setting up gemsets" __rvm_pushpop "$snapshot_temp_path/gems" - for snapshot_gemset in $(\ls | grep '\.gems$' | sed 's/.gems$//'); do + for snapshot_gemset in $(\ls | \grep '\.gems$' | sed 's/.gems$//'); do __rvm_become "$snapshot_gemset" result="$?" __error_on_result "$result" "Error becoming '$snapshot_gemset'" && return "$result" \mkdir -p "$GEM_HOME/cache/" \cp -Rf "$snapshot_gemset/" "$GEM_HOME/cache/"