diff --git a/fastlane/lib/fastlane/auto_complete.rb b/fastlane/lib/fastlane/auto_complete.rb index 333a419b8d8..37ade00d3b6 100644 --- a/fastlane/lib/fastlane/auto_complete.rb +++ b/fastlane/lib/fastlane/auto_complete.rb @@ -45,7 +45,7 @@ def self.execute(args, options) custom_commands = options.custom.to_s.split(',') Fastlane::SHELLS.each do |shell_name| - open("#{fastlane_conf_dir}/completions/completion.#{shell_name}", 'a') do |file| + File.open("#{fastlane_conf_dir}/completions/completion.#{shell_name}", 'a') do |file| default_line_prefix = Helper.bundler? ? "bundle exec " : "" file.puts(self.get_auto_complete_line(shell_name, "#{default_line_prefix}fastlane"))