From d044fdddb2af0f84fcb520bc38b5403f348a94a9 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 13 Sep 2018 08:20:56 +0200 Subject: bin/build-packages: exit if return-assignment reports usage error --- bin/build-packages | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/build-packages b/bin/build-packages index ecf98e7..6e0554b 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -713,7 +713,7 @@ while [ "${count}" -ne 0 ] && \ ;; *) >&2 echo "unknown return code ${err} from 'return-assignment'" - wait_some_time 60 + exit ${err} esac done success=true @@ -759,12 +759,13 @@ while [ "${count}" -ne 0 ] && \ >&2 echo 'I was too slow, the package is outdated. I will continue ...' break ;; - 4) + 5) >&2 echo '"return-assignment" was called with wrong arguments.' + exit 1 ;; *) >&2 echo "unknown return code ${err} from 'return-assignment'" - wait_some_time 60 + exit ${err} esac done fi -- cgit v1.2.3-70-g09d2