]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
raduat: "which" is apparently not portable...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 31 Dec 2025 18:56:22 +0000 (18:56 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 1 Jan 2026 18:23:44 +0000 (18:23 +0000)
scripts/util/raduat

index 4633e9a5998416010df6ecbf3e1278c77fae5033..4605c739bab67049b12f504ca9347209c681aa09 100755 (executable)
@@ -95,7 +95,7 @@ function show_help
     echo "The directory containing the tests may have multiple subdirectories to group the tests."
 }
 
-RADCLIENT=$(which "$RADCLIENT")
+RADCLIENT="$(command -v -- "$RADCLIENT" || true)"
 if [ ! -x "$RADCLIENT" ]; then
     ERROR "Can't find radclient binary, modify your \$PATH or set RADCLIENT"
     exit 64