summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur She <arthur.she@linaro.org>2018-06-01 00:10:30 -0700
committerArthur She <arthur.she@linaro.org>2018-06-01 00:16:07 -0700
commitbd0f2fead8a8fc308a989c0241cf784ddd014dc3 (patch)
tree4f250ca6c8a3152a42223adc82b4abedc767f941
parente498bb4a80ab0899afbbedf1248f8dc5cfb795c6 (diff)
send-to-lava.sh: use 'which' instead of 'command'
to determine if 'lava-test-case' exist. Busybox doesn't have 'command'. Change-Id: Ia808e29eca1467b909e27d84e14730c6204f8ec2
-rwxr-xr-xautomated/utils/send-to-lava.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/automated/utils/send-to-lava.sh b/automated/utils/send-to-lava.sh
index ace3de9..49495d0 100755
--- a/automated/utils/send-to-lava.sh
+++ b/automated/utils/send-to-lava.sh
@@ -2,7 +2,7 @@
RESULT_FILE="$1"
-command -v lava-test-case
+which lava-test-case > /dev/null 2>&1
lava_test_case="$?"
if [ -f "${RESULT_FILE}" ]; then