[shell] resolve shellcheck warnings (#4966)

This commit is contained in:
Jonathan Hui
2020-05-19 13:04:42 -07:00
parent cb9b353fb3
commit dd0fa0d34c
11 changed files with 76 additions and 81 deletions
+3 -3
View File
@@ -193,7 +193,7 @@ do_unit()
local builddir="${OT_BUILDDIR}/cmake/openthread-simulation-${THREAD_VERSION}"
if [[ ! -d ${builddir} ]]; then
echo "Cannot find build directory!"
exit -1
exit 1
fi
cd "${builddir}"
@@ -410,8 +410,8 @@ envsetup()
export -n VERBOSE
fi
read -r -a ot_extra_options <<<"${OT_OPTIONS-}"
ot_extra_options=${ot_extra_options:-()}
read -r -a ot_extra_options_in <<<"${OT_OPTIONS-}"
ot_extra_options=${ot_extra_options_in:-()}
}
main()