scripts/rvm-install in rvm-1.0.13 vs scripts/rvm-install in rvm-1.0.14

- old
+ new

@@ -364,12 +364,12 @@ if ! grep -q '.profile' "$rcfile" ; then echo " Adding profile sourcing line to $rcfile." printf " -# rvm-install added line: -[[ -s \$HOME/.profile ]] && source \$HOME/.profile +# rvm install added line: +[[ -s \"$rvm_path/.profile\" ]] && source \"$rvm_path/.profile\" " >> "$rcfile" fi fi @@ -377,11 +377,11 @@ if ! grep -q "scripts\/rvm" "$rcfile" ; then echo " Adding rvm loading line to $rcfile." printf " -# rvm-install added: +# rvm install added: [[ -s \"$rvm_path/.rvm/scripts/rvm\" ]] && . \"$rvm_path/.rvm/scripts/rvm\" " >> "$rcfile" fi @@ -401,10 +401,11 @@ fi for gemset_file in $(find "$PWD/gemsets" -iname '*.gems' | sed 's/^\.\///') ; do cwd="${PWD//\//\\/}\/gemsets\/" + destination="$rvm_path/gemsets/${gemset_file/$cwd}" destination_path="$(dirname "$destination")" if [[ ! -s "$destination" ]] ; then @@ -414,11 +415,9 @@ cp "$gemset_file" "$destination" fi done - - unset destination destination_path gemset_file fi if [[ -d patchsets/ ]] ; then