mirror of
https://github.com/bin456789/reinstall.git
synced 2025-06-19 10:50:06 +00:00
parent
84948db5d3
commit
f8e58ab876
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user