Fixes to match shellcheck
diff --git a/tools/run_tests/sanity/check_version.sh b/tools/run_tests/sanity/check_version.sh
index fe504e3..9ad9ef3 100755
--- a/tools/run_tests/sanity/check_version.sh
+++ b/tools/run_tests/sanity/check_version.sh
@@ -21,23 +21,23 @@
yamlfile=build_handwritten.yaml
status=0
-function check_key() {
+check_key () {
key=$1
build=$(grep "^$key =" < $buildfile | awk -F\" '{print $2}')
yaml=$(grep "^ *${key}:" < $yamlfile | head -1 | awk '{print $2}')
if [ x"$build" = x ] ; then
- echo $key not defined in $buildfile
+ echo "$key not defined in $buildfile"
status=1
fi
if [ x"$yaml" = x ] ; then
- echo $key not defined in $yamlfile
+ echo "$key not defined in $yamlfile"
status=1
fi
- if [ x"$build" != x -a x"$yaml" != x -a "$build" != "$yaml" ] ; then
- echo $key mismatch between $buildfile "($build)" and $yamlfile "($yaml)"
+ if [ x"$build" != x"$yaml" ] ; then
+ echo "$key mismatch between $buildfile ($build) and $yamlfile ($yaml)"
status=1
fi
}