Skip to content

Commit 9711bc2

Browse files
lpincaruyadorno
authored andcommitted
tools: replace sed with perl
For cross-platform compatibility use perl instead of sed. Fixes: #48496 PR-URL: #48499 Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent f8ba672 commit 9711bc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/dep_updaters/update-icu.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ if [ "$CHECKSUM" != "$GENERATED_CHECKSUM" ]; then
5555
exit 0
5656
fi
5757

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

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

6262
rm -rf out "$DEPS_DIR/icu" "$DEPS_DIR/icu4c*"
6363

0 commit comments

Comments
 (0)