]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
raduat: Simplify grep invocation
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 9 Jan 2026 20:42:50 +0000 (20:42 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 10 Jan 2026 02:13:57 +0000 (02:13 +0000)
scripts/util/raduat

index 2b552b8645f70c089eb40ee99985b413feea1d60..12bfee23bf0470a1504dd5385f98edba6c9a52cd 100755 (executable)
@@ -371,7 +371,7 @@ for i in "${test_files[@]}"; do
     fi
 
     # If the test file is marked as serial only, then we need to serialise the test
-    if head -n 1 "$i" | grep -i -E '^#\s*serial' > /dev/null; then
+    if head -n 1 "$i" | grep -qiE '^#\s*serial'; then
         DEBUG "$i marked as serial only"
         serial_file_args+=" -f \"${i}:${expected}\""
         continue