]> www.tinc-vpn.org Git - tinc/blobdiff - test/security.test
Let the CLI prevent adding incorrect Subnets.
[tinc] / test / security.test
index 815825ea3a2afcfd29bfc7e1d761ac372c21fdca..ee7bd46dd30af7b2e79da393be738ea5c05369a6 100755 (executable)
@@ -1,12 +1,11 @@
 #!/bin/sh
 
-# shellcheck source=testlib.sh
 . ./testlib.sh
 
 echo [STEP] Skip this test if tools are missing
 
-which nc >/dev/null || exit $EXIT_SKIP_TEST
-which timeout >/dev/null || exit $EXIT_SKIP_TEST
+command -v nc >/dev/null || exit $EXIT_SKIP_TEST
+command -v timeout >/dev/null || exit $EXIT_SKIP_TEST
 
 foo_port=30050
 bar_port=30051