summaryrefslogtreecommitdiff
path: root/automated/lib
diff options
context:
space:
mode:
authorChase Qi <chase.qi@linaro.org>2016-10-21 08:43:25 +0800
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2016-10-24 10:10:17 +0000
commitae7807fbdc457301892b2d4734c7f7f5dbba94e0 (patch)
tree9e0d69e936ac8114eca197753dc2b003fbacfa2b /automated/lib
parentc1a3f8840ba967cc70ac6a55537a5b594f1fbe0b (diff)
downloadtest-definitions-pipe-ae7807fbdc457301892b2d4734c7f7f5dbba94e0.tar.gz
v2: sh-test-lib: fix shellcheck error on validate_check_sum funtion
Change-Id: Iaca9fd730ffd80ffaba71c0438786fd6b14034f0 Signed-off-by: Chase Qi <chase.qi@linaro.org>
Diffstat (limited to 'automated/lib')
-rwxr-xr-xautomated/lib/sh-test-lib4
1 files changed, 2 insertions, 2 deletions
diff --git a/automated/lib/sh-test-lib b/automated/lib/sh-test-lib
index 563521f..e4f4b8a 100755
--- a/automated/lib/sh-test-lib
+++ b/automated/lib/sh-test-lib
@@ -169,8 +169,8 @@ validate_check_sum() {
OUTPUT_FILE_NAME="$1"
SHA256SUM_CHECK="$2"
# Get sha256sum of output_file
- GET_SHA256SUM=$(sha256sum ${OUTPUT_FILE_NAME} | awk '{print $1}')
- echo "GET_SHA256SUM is "${GET_SHA256SUM}""
+ GET_SHA256SUM=$(sha256sum "${OUTPUT_FILE_NAME}" | awk '{print $1}')
+ echo "GET_SHA256SUM is ${GET_SHA256SUM}"
if [ "${SHA256SUM_CHECK}" = "${GET_SHA256SUM}" ] ; then
return 0
else