From f8e58ab876aae958f4ab8948f121b0d7dfa56827 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Wed, 13 Dec 2023 21:56:37 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E5=AE=89=E8=A3=85=20ed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit alpine v3.19 busybox 去掉了 ed https://gitlab.alpinelinux.org/alpine/aports/-/commit/07181862d3c61a412edd6353a9220fccb00fadf1 --- trans.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/trans.sh b/trans.sh index 23da20e..f2a133d 100644 --- a/trans.sh +++ b/trans.sh @@ -459,6 +459,7 @@ insert_into_file() { regex_to_find=$3 if [ "$location" = HEAD ]; then + apk add ed in=$(mktemp) cat /dev/stdin >$in echo -e "0r $in \n w \n q" | ed $file >/dev/null