send-to-lava.sh: Use 'command -v' instead of 'which'
The image might not ship 'which'. Use the Posix way instead and use
'command -v' which is guaranteed to work.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
diff --git a/automated/utils/send-to-lava.sh b/automated/utils/send-to-lava.sh
index c27618a..bb6e95e 100755
--- a/automated/utils/send-to-lava.sh
+++ b/automated/utils/send-to-lava.sh
@@ -2,9 +2,9 @@
RESULT_FILE="$1"
-which lava-test-case > /dev/null 2>&1
+command -v lava-test-case > /dev/null 2>&1
lava_test_case="$?"
-which lava-test-set > /dev/null 2>&1
+command -v lava-test-set > /dev/null 2>&1
lava_test_set="$?"
if [ -f "${RESULT_FILE}" ]; then