This is an automated email from the git hooks/post-receive script.
bernie.ogden pushed a commit to branch inserted_src in repository toolchain/semiautobench.
The following commit(s) were added to refs/heads/inserted_src by this push: new dc953df Make array construction friendly to trapping undefined variables dc953df is described below
commit dc953dfcebbf97a13f2670e7f771bb76668d23a0 Author: Bernard Ogden bernie.ogden@linaro.org Date: Tue Jul 21 13:54:24 2015 +0200
Make array construction friendly to trapping undefined variables
Change-Id: I61bb7da646a489dafb165f37798874e485e511fb --- invoke_session_debian | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/invoke_session_debian b/invoke_session_debian index f56898a..cc5c12d 100755 --- a/invoke_session_debian +++ b/invoke_session_debian @@ -128,7 +128,11 @@ for lava_name in `lava-group | grep '[[:blank:]]*target$' | aw [...] echo "TYPE ${target_base}" sed "s/^ip=.*/ip=${target_ip}/" "${ABE_DIR}/config/boards/bench/${target_base}.j [...] if test $? -ne 0; then echo "Failed to generate config file for target ${lava_na [...] - targets=("${targets[@]}" "${lava_name}") + if test "${#targets[@]}" -eq 0; then + targets=("${lava_name}") + else + targets=("${targets[@]}" "${lava_name}") + fi done export targets