diff --git a/blockcheck2.d/custom/10-list.sh b/blockcheck2.d/custom/10-list.sh index dc119ab..fa335f9 100644 --- a/blockcheck2.d/custom/10-list.sh +++ b/blockcheck2.d/custom/10-list.sh @@ -25,12 +25,19 @@ check_list() esac line=$(echo "$line" | tr -d "\r\n") # dry run eval in subshell. can fail because of unescaped chars or something else - if (eval emptyf $line); then + if (eval emptyf $line) 2>/dev/null; then # real run in the current shell. can modify vars eval pktws_curl_test_update "$1" "$2" $line && ok=1 else - echo >&2 BAD STRATEGY: $line - echo >&2 "THIS LINE IS PASSED TO eval SHELL FUNCTION. IT'S INTERPRETED AS A SHELL STATEMENT. SPECIAL CHARS MUST BE ESCAPED" + # $line contains characters that are meaningful to nfqws2/lua-desync + # syntax (e.g. "<" in --out-range=s1