Skip to content

Commit

Permalink
do not error when dirs not exist while gemset copy, fix #1220
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed Oct 22, 2012
1 parent 07f09da commit 19a847b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/gemsets
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,12 @@ gemset_copy()
[[ -L "$source_path/$dir" ]]
then
cp "$source_path/$dir" "$destination_path/$dir"
elif
[[ ! -f "$source_path/$dir" ]]
then
: "$source_path/$dir" does not exist
else
rvm_warn "Unknown file type for: $source_path/$dir"
rvm_warn "Unknown file type for: $source_path/$dir" >&2
fi
done
rvm_log "Making gemset for $destination_ruby pristine."
Expand Down

0 comments on commit 19a847b

Please sign in to comment.