From a5ab9e488522b8fb74a6eadc4a7acf9199e782c4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 6 Jan 2017 19:49:23 +0000 Subject: Shell bug: avoid local=$(....) as it defeats set -e Signed-off-by: Ian Jackson --- tests/lib-build-modes | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/lib-build-modes') diff --git a/tests/lib-build-modes b/tests/lib-build-modes index 30fbb5a..ee2975d 100644 --- a/tests/lib-build-modes +++ b/tests/lib-build-modes @@ -86,7 +86,7 @@ bm-quirk-sbuild-after-act () { # run. We know it must be running it in the chroot because we # provide sbuild with the dsc, not the tree, so we simply # ignore all executions of the clean target by schroot. - local arch=$(dpkg-architecture -qDEB_BUILD_ARCH) + local arch; arch=$(dpkg-architecture -qDEB_BUILD_ARCH) local sblog=../example_${v}_$arch.build if [ -e $sblog ]; then sed ' @@ -199,7 +199,7 @@ bm-run-one () { bm-report-test "SOURCE FILE" [ -e $dsc ] if [ $actual_status = success ]; then - local changes=$(echo ../example_${v}_*.changes) + local changes; changes=$(echo ../example_${v}_*.changes) case "$changes" in *' '*) fail "build generated ambiguous .changes: $changes" ;; esac -- cgit v1.2.3