Commit ca43a9e6 authored by Robin Fischer's avatar Robin Fischer

Fix escaping

parent e67c29dd
......@@ -43,7 +43,7 @@ module Fastlane
command << " /p:AndroidVersionCodeProperties=civersioncode=#{params[:version_code]}"
unless params[:android_string_resources_path].nil?
crashlytics_replace_command = "if [[ -f \"#{params[:android_string_resources_path]}\" ]]; then sed -i '' 's/\<string name=\"com.crashlytics.android.build_id\"\>1\<\/string\>/\<string name=\"com.crashlytics.android.build_id\"\>#{params[:version_code]}\<\/string\>/' #{params[:android_string_resources_path]}; fi"
crashlytics_replace_command = "if [[ -f \"#{params[:android_string_resources_path]}\" ]]; then sed -i '' 's/\\<string name=\"com.crashlytics.android.build_id\"\\>1\\<\\/string\\>/\\<string name=\"com.crashlytics.android.build_id\"\\>#{params[:version_code]}\\<\\/string\\>/' #{params[:android_string_resources_path]}; fi"
FastlaneCore::CommandExecutor.execute(command: crashlytics_replace_command, print_all: true, print_command: true)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment