summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands/generate_index_command.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2022-08-09 11:16:07 +0900
committerHiroshi SHIBATA <[email protected]>2022-08-09 12:05:19 +0900
commit44264b4fee1e208e759710c39271186ff9856b40 (patch)
tree939a9810293c86553e7b600bce9fb426776f6000 /lib/rubygems/commands/generate_index_command.rb
parentf8936b3341376948112e31f9e9b0cb3ad6e91e7c (diff)
Merge rubygems/bundler HEAD.
Pick from https://github.com/rubygems/rubygems/commit/dfbb5a38114640e0d8d616861607f3de73ee0199
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6224
Diffstat (limited to 'lib/rubygems/commands/generate_index_command.rb')
-rw-r--r--lib/rubygems/commands/generate_index_command.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/commands/generate_index_command.rb b/lib/rubygems/commands/generate_index_command.rb
index 8bb24c9ce3..bc71e60ff0 100644
--- a/lib/rubygems/commands/generate_index_command.rb
+++ b/lib/rubygems/commands/generate_index_command.rb
@@ -68,8 +68,8 @@ Marshal::MINOR_VERSION constants. It is used to ensure compatibility.
# This is always true because it's the only way now.
options[:build_modern] = true
- if not File.exist?(options[:directory]) or
- not File.directory?(options[:directory])
+ if !File.exist?(options[:directory]) ||
+ !File.directory?(options[:directory])
alert_error "unknown directory name #{options[:directory]}."
terminate_interaction 1
else