Skip to content

Commit 13c87dc

Browse files
committed
Fix sed invocation for use on MacOS
1 parent da94936 commit 13c87dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/scripts/npm_publish

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ update_markdown_package_urls() {
258258
# Updates the version in the root package.json.
259259
update_version() {
260260
echo 'Updating project version...' >&2
261-
sed -i "s/${current_version}/${release_version}/" "${package_json}"
261+
sed -i '' "s/${current_version}/${release_version}/" "${package_json}"
262262
if [[ "$?" -ne 0 ]]; then
263263
echo '' >&2
264264
echo 'Error: unexpected error. Encountered an error when updating project version.' >&2

0 commit comments

Comments
 (0)