diff --git a/.dev-tools/setup-ngxblocker/setup-ngxblocker b/.dev-tools/setup-ngxblocker/setup-ngxblocker index 08c213fd0..3a7cfdd97 100644 --- a/.dev-tools/setup-ngxblocker/setup-ngxblocker +++ b/.dev-tools/setup-ngxblocker/setup-ngxblocker @@ -219,10 +219,10 @@ find_line() { case "$first_last" in # ignore file #comments - #first) awk "/$find_str/{ print NR; exit }" $file;; - #last) awk "/$find_str/{ print NR }" $file | tail -n1;; - first) grep -nE "^[[:space:]]+$find_str" $file | head -n1 | awk -F: '{print $1}';; - last) grep -nE "[[:space:]]+$find_str" $file | tail -n1 | awk -F: '{print $1}';; + first) awk "/$find_str/{ print NR; exit }" $file;; + last) awk "/$find_str/{ print NR }" $file | tail -n1;; + #first) grep -nE "^[[:space:]]+$find_str" $file | head -n1 | awk -F: '{print $1}';; + #last) grep -nE "[[:space:]]+$find_str" $file | tail -n1 | awk -F: '{print $1}';; esac }