提交 efbbb305 编写于 作者: R Rafael Mendonça França

Merge pull request #18049 from yuki3738/fix_rails_db_command_error

Add a code checking about file or not to the rails db command
......@@ -178,7 +178,7 @@ def find_cmd_and_exec(commands, *args)
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册