snapshot/lib/snapshot/runner.rb in fastlane-2.86.0.beta.20180316050051 vs snapshot/lib/snapshot/runner.rb in fastlane-2.86.0.beta.20180317050040
- old
+ new
@@ -14,10 +14,10 @@
require_relative 'simulator_launchers/launcher_configuration'
module Snapshot
class Runner
def work
- if File.exist?("./fastlane/snapshot.js") or File.exist?("./snapshot.js")
+ if File.exist?("./fastlane/snapshot.js") || File.exist?("./snapshot.js")
UI.error("Found old snapshot configuration file 'snapshot.js'")
UI.error("You updated to snapshot 1.0 which now uses UI Automation")
UI.error("Please follow the migration guide: https://github.com/fastlane/fastlane/blob/master/snapshot/MigrationGuide.md")
UI.error("And read the updated documentation: https://docs.fastlane.tools/actions/snapshot/")
sleep(3) # to be sure the user sees this, as compiling clears the screen