mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-07-02 14:02:26 +00:00
kiss: Avoid 'sed -i'
This commit is contained in:
parent
3563141e12
commit
3de18eab5e
2
kiss
2
kiss
|
@ -164,7 +164,7 @@ ssed() {
|
||||||
# The '$4' equates to a 'sudo'/'su' equivalent when parts
|
# The '$4' equates to a 'sudo'/'su' equivalent when parts
|
||||||
# of the function's body must run as 'root'. Globbing is
|
# of the function's body must run as 'root'. Globbing is
|
||||||
# disabled and the input hardcoded so this is fine.
|
# disabled and the input hardcoded so this is fine.
|
||||||
$4 sed "s/$sea/$rep" "$3" > "$3.bak"
|
$4 sed "s/$sea/$rep/" "$3" > "$3.bak"
|
||||||
$4 mv -f "$3.bak" "$3"
|
$4 mv -f "$3.bak" "$3"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user