mirror of
https://github.com/bin456789/reinstall.git
synced 2025-12-10 15:37:43 +08:00
1
trans.sh
1
trans.sh
@ -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