privoxy: fix postinst missing $
authorJosh Powers <powersj@fastmail.com>
Mon, 21 Nov 2022 17:32:37 +0000 (10:32 -0700)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Sat, 3 Dec 2022 11:53:14 +0000 (12:53 +0100)
fixes: #19949

Signed-off-by: Josh Powers <powersj@fastmail.com>
(cherry picked from commit 46e4def61f6b670daac1725df8f3fc4475fe5450)

net/privoxy/Makefile

index 6ce0574afb5e56c2f6f2b37c527155545cac2c37..9f859c4eb63670df4be18dca89d114e489f88ece 100644 (file)
@@ -158,7 +158,7 @@ endef
 define Package/privoxy/postinst
        #!/bin/sh
        # if exists, update previous version entry missing protocol
-       (grep -E "privoxy.*8118$" $${IPKG_INSTROOT}/etc/services) > /dev/null \
+       (grep -E "privoxy.*8118$$" $${IPKG_INSTROOT}/etc/services) > /dev/null \
                && sed -i "s/privoxy.*8118/privoxy\t\t8118\/tcp/" $${IPKG_INSTROOT}/etc/services
 
        # add missing tcp and udp entries