]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
raduat: Apparently there are issues with -a and -o?
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 1 Jan 2026 12:03:28 +0000 (12:03 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 1 Jan 2026 18:25:07 +0000 (18:25 +0000)
scripts/util/raduat

index 88df4d2c0a950c73680382a9ed8065522a77f5b3..f648b21910d9890697dc546f1a4daaaeaea5edfb 100755 (executable)
@@ -325,7 +325,7 @@ args=
 file_args=
 serial_file_args=
 for i in $test_files; do
-    if [ ! -f "$i" -a ! -L "$i" ]; then
+    if [ ! -f "$i" ] && [ ! -L "$i" ]; then
         INFO "Skipping $i: not file"
         continue
     fi
@@ -337,7 +337,7 @@ for i in $test_files; do
 
     expected="${i}${FILTER_SUFFIX}"
     # We need pairs of requests and responses in the bulk format
-    if [ ! -f "$expected" -a ! -L "$expected" ]; then
+    if [ ! -f "$expected" ] && [ ! -L "$expected" ]; then
         DEBUG "$i cannot be parallelised: Can't find 'expected' file"
         file_args+=" -f \"$i\""
         continue
@@ -353,12 +353,12 @@ for i in $test_files; do
     # If there's a coa_reply file, then we need to serialise the test
     # because there's no bulk test format that includes coa_reply
     coa_reply="${i}${COA_REPLY_SUFFIX}"
-    if [ -f "$coa_reply" -o -L "$coa_reply" ]; then
+    if [ -f "$coa_reply" ] || [ -L "$coa_reply" ]; then
         DEBUG "$i cannot be parallelised: Found CoA Reply"
 
         # We also have a filter
         coa_filter="${i}${COA_FILTER_SUFFIX}"
-        if [ -f "$coa_filter" -o -L "$coa_filter" ]; then
+        if [ -f "$coa_filter" ] || [ -L "$coa_filter" ]; then
             serial_file_args+=" -f \"${i}:${expected}:${coa_reply}:${coa_filter}\""
         else
             serial_file_args+=" -f \"${i}:${expected}:${coa_reply}\""