cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 3de18eab5ea62bcbc3c8c9c1a6f841742a07238f
parent 3563141e12096daf94d977a5e4af15eb64acd47e
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Tue, 28 Jan 2020 21:22:13 +0200

kiss: Avoid 'sed -i'

Diffstat:
Mkiss | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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" }