summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/return-assignment10
1 files changed, 10 insertions, 0 deletions
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}"