From 8e29ac652f4ceef31a4ac3922f404d7c7878c737 Mon Sep 17 00:00:00 2001 From: "dylan.araps@gmail.com" Date: Tue, 28 Jan 2020 19:22:12 +0000 Subject: kiss: Avoid 'sed -i' FossilOrigin-Name: 6a09195c0a0ee2af8bed0abac8431b319e282a856b4ee4f4cd67adab1886daeb --- kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kiss') diff --git a/kiss b/kiss index 53ce64d..e6936f1 100755 --- a/kiss +++ b/kiss @@ -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" } -- cgit v1.2.3