Skip to content

Commit

Permalink
within in_bootstrapped_dir(): ensure that the first arg is indeed a d…
Browse files Browse the repository at this point in the history
…irectory, and not an option
  • Loading branch information
dgeb committed Mar 27, 2012
1 parent 2229a6b commit 7bc7bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gem_release/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def gemspec_dirs

def in_bootstrapped_dir
dir = Array(options[:args]).first rescue nil
if dir
if dir && dir.kind_of?(String) && dir[0] != '-'
Dir.mkdir dir
Dir.chdir(dir) { yield }
else
Expand Down

0 comments on commit 7bc7bff

Please sign in to comment.