diff --git a/fastlane/lib/fastlane/lane_manager.rb b/fastlane/lib/fastlane/lane_manager.rb index 4fd72a68da4..9aa49c85166 100644 --- a/fastlane/lib/fastlane/lane_manager.rb +++ b/fastlane/lib/fastlane/lane_manager.rb @@ -107,12 +107,13 @@ def self.choose_lane(ff, platform) puts(table) + fastlane_command = Helper.bundler? ? "bundle exec fastlane" : "fastlane" i = UI.input("Which number would you like run?") i = i.to_i - 1 if i >= 0 && available[i] selection = available[i].last.pretty_name - UI.important("Running lane `#{selection}`. Next time you can do this by directly typing `fastlane #{selection}` 🚀.") + UI.important("Running lane `#{selection}`. Next time you can do this by directly typing `#{fastlane_command} #{selection}` 🚀.") platform = selection.split(' ')[0] lane_name = selection.split(' ')[1] @@ -123,7 +124,7 @@ def self.choose_lane(ff, platform) return platform, lane_name # yeah else - UI.user_error!("Run `fastlane` the next time you need to build, test or release your app 🚀") + UI.user_error!("Run `#{fastlane_command}` the next time you need to build, test or release your app 🚀") end end end