mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #18049 from yuki3738/fix_rails_db_command_error
Add a code checking about file or not to the rails db command
This commit is contained in:
commit
efbbb30534
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ module Rails
|
|||
found = commands.detect do |cmd|
|
||||
dirs_on_path.detect do |path|
|
||||
full_path_command = File.join(path, cmd)
|
||||
File.executable? full_path_command
|
||||
File.file?(full_path_command) && File.executable?(full_path_command)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue