deliver/lib/deliver/html_generator.rb in fastlane-2.112.0.beta.20181216200018 vs deliver/lib/deliver/html_generator.rb in fastlane-2.112.0.beta.20181217200025
- old
+ new
@@ -7,10 +7,11 @@
# * separated by newlines
KEYWORD_SPLITTER = /(?:,\s?|\r?\n)/
def run(options, screenshots)
begin
- fastlane_path = FastlaneCore::FastlaneFolder.path
+ # Use fastlane folder or default to current directory
+ fastlane_path = FastlaneCore::FastlaneFolder.path || "."
html_path = self.render(options, screenshots, fastlane_path)
rescue => ex
UI.error(ex.inspect)
UI.error(ex.backtrace.join("\n"))
okay = UI.input("Could not render HTML preview. Do you still want to continue?")