diff options
Diffstat (limited to 'lib/rubygems/commands/generate_index_command.rb')
-rw-r--r-- | lib/rubygems/commands/generate_index_command.rb | 4 |
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 |