fix: bug in sed command

master
qhga 3 years ago committed by qhga
parent 2ecf130cf4
commit 9ae192f7a9
Signed by: phga
GPG Key ID: 5249548AA705F019

@ -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
}

Loading…
Cancel
Save