diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-28 19:22:12 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-28 19:22:12 +0000 |
commit | 8e29ac652f4ceef31a4ac3922f404d7c7878c737 (patch) | |
tree | 684859c5bcd84c3fd3275f1d474a4b73c8776d23 /kiss | |
parent | 5323ceb1d111d3ab8527f2a398a8b26c4e66689c (diff) | |
download | cpt-8e29ac652f4ceef31a4ac3922f404d7c7878c737.tar.gz |
kiss: Avoid 'sed -i'
FossilOrigin-Name: 6a09195c0a0ee2af8bed0abac8431b319e282a856b4ee4f4cd67adab1886daeb
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" } |