From 3de18eab5ea62bcbc3c8c9c1a6f841742a07238f Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 28 Jan 2020 21:22:13 +0200 Subject: [PATCH] kiss: Avoid 'sed -i' --- kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" }