scripts/snapshot in rvm-1.0.5 vs scripts/snapshot in rvm-1.0.6

- old
+ new

@@ -141,15 +141,15 @@ export rvm_create_flag=1 "$rvm_scripts_path/log" "info" "Setting up gemsets" ( builtin cd "$snapshot_temp_path/gems" - for snapshot_gemset in $(\ls | \grep '\.gems$' | sed 's/.gems$//'); do + for snapshot_gemset in $(find * -iname '*.gems' -type f -maxdepth 0 | 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/" + mkdir -p "$GEM_HOME/cache/" + cp -Rf "$snapshot_gemset/" "$GEM_HOME/cache/" result="$?" __error_on_result "$result" "Error copying across cache for $snapshot_gemset" && return "$result" "$rvm_scripts_path/gemsets" import "$snapshot_gemset" >/dev/null 2>&1 result="$?" __error_on_result "$result" "Error importing gemset for $snapshot_gemset" && return "$result"