diff options
author | Erich Eckner <git@eckner.net> | 2018-09-13 08:20:56 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-09-13 08:20:56 +0200 |
commit | d044fdddb2af0f84fcb520bc38b5403f348a94a9 (patch) | |
tree | 55e261ba79284df27e78d6ba59347c6f83e76263 /bin | |
parent | fe1fdabaefa5a9e3919211c2b54974c1c1426466 (diff) | |
download | builder-d044fdddb2af0f84fcb520bc38b5403f348a94a9.tar.xz |
bin/build-packages: exit if return-assignment reports usage error
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/build-packages | 7 |
1 files changed, 4 insertions, 3 deletions
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 |