Skip to content

Commit 48bf4f8

Browse files
authored
Merge pull request #366 from wordpress-mobile/fix/promo-screenshots
Screenshots: Fix blocking errors in promo screenshots helper
2 parents 329effd + bad7425 commit 48bf4f8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ _None_
1818
### Bug Fixes
1919

2020
* Update GlotPress `export-translations` requests to avoid rate limiting. [#361] [#362]
21+
* Fix bugs with the shell command in `promo_screenshots_helper`. [#366]
2122

2223
### Internal Changes
2324

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)