1
0
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:
Dylan Araps 2020-01-28 21:22:13 +02:00
parent 3563141e12
commit 3de18eab5e
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

2
kiss
View File

@ -164,7 +164,7 @@ ssed() {
# The '$4' equates to a 'sudo'/'su' equivalent when parts
# of the function's body must run as 'root'. Globbing is
# 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"
}