mirror of
https://github.com/bin456789/reinstall.git
synced 2026-04-23 16:40:53 +08:00
core: 安装 ed
alpine v3.19 busybox 去掉了 ed https://gitlab.alpinelinux.org/alpine/aports/-/commit/07181862d3c61a412edd6353a9220fccb00fadf1
This commit is contained in:
@@ -459,6 +459,7 @@ insert_into_file() {
|
|||||||
regex_to_find=$3
|
regex_to_find=$3
|
||||||
|
|
||||||
if [ "$location" = HEAD ]; then
|
if [ "$location" = HEAD ]; then
|
||||||
|
apk add ed
|
||||||
in=$(mktemp)
|
in=$(mktemp)
|
||||||
cat /dev/stdin >$in
|
cat /dev/stdin >$in
|
||||||
echo -e "0r $in \n w \n q" | ed $file >/dev/null
|
echo -e "0r $in \n w \n q" | ed $file >/dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user