Skip to content

Commit bb27a3e

Browse files
committed
Resolve unknown method error for shell command
1 parent 329effd commit bb27a3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fastlane/plugin/wpmreleasetoolkit/helper/promo_screenshots_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def draw_text_to_canvas(canvas, text, width, height, x_position, y_position, fon
234234
begin
235235
tempTextFile = Tempfile.new()
236236

237-
sh('drawText', "html=\"#{text}\"", "maxWidth=#{width}", "maxHeight=#{height}", "output=\"#{tempTextFile.path}\"", "fontSize=#{font_size}", "stylesheet=\"#{stylesheet_path}\"", "alignment=\"#{position}\"")
237+
Action.sh('drawText', "html=\"#{text}\"", "maxWidth=#{width}", "maxHeight=#{height}", "output=\"#{tempTextFile.path}\"", "fontSize=#{font_size}", "stylesheet=\"#{stylesheet_path}\"", "alignment=\"#{position}\"")
238238

239239
text_content = open_image(tempTextFile.path).trim
240240
text_frame = create_image(width, height)

0 commit comments

Comments
 (0)