mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 11:16:31 +04:00
adblock-fast: bugfix: remove domains on allow
* fix sed command to properly remove allowed domains from block-file
Signed-off-by: Stan Grishin <stangri@melmac.ca>
(cherry picked from commit bce310bfcd)
This commit is contained in:
@@ -1124,7 +1124,7 @@ adb_allow() {
|
||||
for c in $string; do
|
||||
output 2 " $c "
|
||||
hf="$(echo "$c" | sed 's/\./\\./g')"
|
||||
if sed -i "/(^|\.)${hf}$/d;" "$outputFile" && \
|
||||
if sed -i "/\(^\|\.\)${hf}$/d;" "$outputFile" && \
|
||||
uci_add_list_if_new "${packageName}" 'config' 'allowed_domain' "$c"; then
|
||||
output_ok
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user