From e915ba73a678a1e28a72101e0171684222960710 Mon Sep 17 00:00:00 2001 From: Lucas Silva Date: Thu, 16 Sep 2021 16:10:16 -0300 Subject: [PATCH] fix build --- lib/fastlane/plugin/ionic/actions/ionic_action.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/fastlane/plugin/ionic/actions/ionic_action.rb b/lib/fastlane/plugin/ionic/actions/ionic_action.rb index 69a89d3..f766270 100644 --- a/lib/fastlane/plugin/ionic/actions/ionic_action.rb +++ b/lib/fastlane/plugin/ionic/actions/ionic_action.rb @@ -43,7 +43,7 @@ def self.get_platform_args(params, platform_args_map) # handle all other cases else unless param_value.to_s.empty? - platform_args << "--#{cli_param}=#{param_value.shellescape}" + platform_args << "--#{cli_param}=#{Shellwords.escape(param_value)}" end end end @@ -134,9 +134,9 @@ def self.build(params) end # export build paths (run step #3) - def self.set_build_paths(is_release) + def self.set_build_paths(params) app_name = self.get_app_name - build_type = is_release ? 'release' : 'debug' + build_type = params[:release] ? 'release' : 'debug' # Update the build path accordingly if Android is being # built as an Android Application Bundle. @@ -153,7 +153,7 @@ def self.set_build_paths(is_release) def self.run(params) self.check_platform(params) self.build(params) - self.set_build_paths(params[:release]) + self.set_build_paths(params) end #####################################################