From 9ae192f7a93ab9d1927ba6ef0dfcd4f314c75f28 Mon Sep 17 00:00:00 2001 From: qhga Date: Wed, 22 Dec 2021 17:46:36 +0100 Subject: [PATCH] fix: bug in sed command --- fresh.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fresh.sh b/fresh.sh index 492bb0e..6e396a1 100755 --- a/fresh.sh +++ b/fresh.sh @@ -192,7 +192,7 @@ com() { add_after() { # Example: # add_after "Color" "ILoveCandy" "$HOME/test/pacman.conf" - sed -i '/$2/d' + sed -i '/'"$2"'/d' sed -i '/'"$1"'/a '"$2"'' $3 }