Skip to content

Commit 6f16d5e

Browse files
author
Issac Trotts
committed
Fix broken perl regex
1 parent f0adf83 commit 6f16d5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appengine/standard/wordpress/update-wordpress

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ cd wordpress || die "Failed to cd into wordpress."
2323
# defined UPLOADS to be an absolute path: /tmp.
2424
# TODO(ijt): See if we can change WordPress upstream to respect absolute
2525
# path values for UPLOADS.
26-
perl -pi -e 's/\<ABSPATH \. UPLOADS\>/UPLOADS/g' $(find . -name \*.php) 2>$log \
26+
perl -pi -e 's/\bABSPATH\s*\.\s*UPLOADS\b/UPLOADS/g' $(find . -name \*.php) 2>$log \
2727
|| die "Failed to strip ABSPATH prefix from UPLOADS in WordPress sources: \
2828
$(cat $log)"

0 commit comments

Comments
 (0)