Skip to content

Commit 2a862e9

Browse files
committed
tools: replace sed with perl
For cross-platform compatibility use perl instead of sed. Fixes: #48496
1 parent 9bdd172 commit 2a862e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/dep_updaters/update-icu.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ if [ "$CHECKSUM" != "$GENERATED_CHECKSUM" ]; then
5959
exit 0
6060
fi
6161

62-
sed -i '' -e "s|\"url\": \"\(.*\)\".*|\"url\": \"$NEW_VERSION_TGZ_URL\",|" "$TOOLS_DIR/icu/current_ver.dep"
62+
perl -i -pe "s|\"url\": \"\(.*\)\".*|\"url\": \"$NEW_VERSION_TGZ_URL\",|" "$TOOLS_DIR/icu/current_ver.dep"
6363

64-
sed -i '' -e "s|\"md5\": \"\(.*\)\".*|\"md5\": \"$CHECKSUM\"|" "$TOOLS_DIR/icu/current_ver.dep"
64+
perl -i -pe "s|\"md5\": \"\(.*\)\".*|\"md5\": \"$CHECKSUM\"|" "$TOOLS_DIR/icu/current_ver.dep"
6565

6666
rm -rf out "$DEPS_DIR/icu" "$DEPS_DIR/icu4c*"
6767

0 commit comments

Comments
 (0)