Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of git.overnothing.com:rvm

  • Loading branch information...
commit 7492e65dd5b33e09ddd1253c152fd3e945494e9a 2 parents c5effba + 4615a87
@wayneeseguin wayneeseguin authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 scripts/migrate
View
10 scripts/migrate
@@ -74,10 +74,14 @@ migrate_rubies()
while read -r origin_gemset; do
[[ "$origin_gemset" = "$expanded_source" || "$origin_gemset" = "${expanded_source}${rvm_gemset_separator:-"@"}"* ]] || continue
- gemset_name="${origin_gemset/*${rvm_gemset_separator:-"@"}/}"
-
destination_gemset="$expanded_destination"
-
+
+ case "$origin_gemset" in
+ *${rvm_gemset_separator:-@}*)
+ gemset_name="${origin_gemset/*${rvm_gemset_separator:-"@"}/}"
+ ;;
+ esac
+
if [[ -n "$gemset_name" ]]; then
destination_gemset="${destination_gemset}${rvm_gemset_separator:-"@"}${gemset_name}"
fi
Please sign in to comment.
Something went wrong with that request. Please try again.