]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tests: Avoid shellcheck warning SC2230
authorMartin Schwenke <martin@meltin.net>
Mon, 5 Aug 2019 00:21:16 +0000 (10:21 +1000)
committerAmitay Isaacs <amitay@samba.org>
Wed, 14 Aug 2019 09:11:35 +0000 (09:11 +0000)
SC2230 which is non-standard...

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/run_tests.sh

index 73523628c799f373da7dd016462cf876345d1244..faaac10ad61c424ea23ecafa96afef5d6c7b792e 100755 (executable)
@@ -155,7 +155,7 @@ tests_passed=0
 tests_failed=0
 summary=""
 
-if ! which mktemp >/dev/null 2>&1 ; then
+if ! type mktemp >/dev/null 2>&1 ; then
     # Not perfect, but it will do...
     mktemp ()
     {