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 }