Skip to content

Commit cfa16b6

Browse files
Trottaduh95
andauthored
Update tools/dep_updaters/update-test426-fixtures.sh
Co-authored-by: Antoine du Hamel <[email protected]>
1 parent 48e118e commit cfa16b6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/dep_updaters/update-test426-fixtures.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ rsync -a --delete "$TMP_DIR"/source-map-tests-"$SHA"/ "$TARGET_DIR"/
1616

1717
rm -rf "$TMP_DIR"
1818

19-
sed -i.bak "s#https://github.com/tc39/source-map-tests/commit/[0-9a-f]*#https://github.com/tc39/source-map-tests/commit/$SHA#" "$README"
20-
rm "$README.bak"
19+
TMP_FILE=$(mktemp)
20+
sed "s#https://github.com/tc39/source-map-tests/commit/[0-9a-f]*#https://github.com/tc39/source-map-tests/commit/$SHA#" "$README" > "$TMP_FILE"
21+
mv "$TMP_FILE" "$README"
2122

2223
echo "test426 fixtures updated to $SHA."

0 commit comments

Comments
 (0)