Skip to content

Commit 82cadf1

Browse files
swissspidyCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 9ad41b3 commit 82cadf1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

features/theme-update.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ Feature: Update WordPress themes
282282
And I run `wp theme path twentytwelve --dir`
283283
And save STDOUT as {THEME_DIR}
284284

285-
When I run `wp eval "mkdir('{THEME_DIR}/.git', 0777, true);"`
285+
When I run `wp eval "is_dir( '{THEME_DIR}/.git' ) || mkdir( '{THEME_DIR}/.git', 0777, true ) || exit( 1 );"`
286286
And I run `wp theme update twentytwelve --include-vcs`
287287
Then STDOUT should contain:
288288
"""

0 commit comments

Comments
 (0)