aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-28 19:22:12 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-28 19:22:12 +0000
commit8e29ac652f4ceef31a4ac3922f404d7c7878c737 (patch)
tree684859c5bcd84c3fd3275f1d474a4b73c8776d23 /kiss
parent5323ceb1d111d3ab8527f2a398a8b26c4e66689c (diff)
downloadcpt-8e29ac652f4ceef31a4ac3922f404d7c7878c737.tar.gz
kiss: Avoid 'sed -i'
FossilOrigin-Name: 6a09195c0a0ee2af8bed0abac8431b319e282a856b4ee4f4cd67adab1886daeb
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss2
1 files changed, 1 insertions, 1 deletions
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"
}