scripts/gemsets in rvm-0.1.46 vs scripts/gemsets in rvm-0.1.47
- old
+ new
@@ -77,9 +77,13 @@
}
gemset_create() {
rvm_ruby_gem_prefix=$(echo $rvm_ruby_gem_home | sed 's/'${rvm_gemset_separator}'.*$//')
for gemset in $(echo $gems_args) ; do
+ if [[ "$gemset" == *"${rvm_gemset_separator}"* ]]; then
+ $rvm_scripts_path/log "error" "Can't do that, it contains a \"${rvm_gemset_separator}\"."
+ continue
+ fi
gem_home="${rvm_ruby_gem_prefix}${rvm_gemset_separator}${gemset}"
\mkdir -p "$gem_home"
# When the globalcache is enabled, we need to ensure we setup the cache directory correctly.
if __rvm_using_gemset_globalcache; then
if [[ -d "$gem_home/cache" && ! -L "$gem_home/cache" ]]; then