index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-09-12 16:28:37 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-09-12 16:28:37 +0200 |
commit | ddf595ef3b3cfdb830404b60d10424c689525442 (patch) | |
tree | f99f4197a96018d3f28fcc960e61414c6eabc0db /bin | |
parent | 6fbd2435443e9cc9ca51bcfd640ca88e66941d18 (diff) |
-rwxr-xr-x | bin/return-assignment | 10 |
diff --git a/bin/return-assignment b/bin/return-assignment index b29764c..3f355bd 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -41,6 +41,16 @@ if [ $# -eq 1 ] && \ exit fi +if [ $# -ne 5 ]; then + >&2 printf 'return-assignment: Wrong number of arguments (%s)\n' \ + "$#" + >&2 printf 'call either:\n' + >&2 printf ' return-assignment ABORT\n' + >&2 printf ' return-assignment pkgbase git_revision mod_git_revision repository ERROR\n' + >&2 printf ' return-assignment pkgbase git_revision mod_git_revision repository sub-pkgrel\n' + exit 2 +fi + # Create a lock file and a trap. exec 9> "${build_list_lock_file}" |