fastlane/lib/fastlane/runner.rb in fastlane-2.152.0 vs fastlane/lib/fastlane/runner.rb in fastlane-2.153.0
- old
+ new
@@ -214,10 +214,12 @@
raise LaneNotAvailableError.new, "Lane not found"
end
end
def execute_action(method_sym, class_ref, arguments, custom_dir: nil, from_action: false)
- if custom_dir.nil?
+ if from_action == true
+ custom_dir = "." # We preserve the directory from where the previous action was called from
+ elsif custom_dir.nil?
custom_dir ||= "." if Helper.test?
custom_dir ||= ".."
end
verify_supported_os(method_sym, class_ref)