From afa16791745305232da12db2e38ed7f496a32828 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 15 May 2015 14:31:07 +0200 Subject: reproducible: refuse to schedule more than 50 packages with notification --- bin/reproducible_schedule_on_demand.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bin/reproducible_schedule_on_demand.sh') diff --git a/bin/reproducible_schedule_on_demand.sh b/bin/reproducible_schedule_on_demand.sh index e2b0f7a4..6ae4af19 100755 --- a/bin/reproducible_schedule_on_demand.sh +++ b/bin/reproducible_schedule_on_demand.sh @@ -42,6 +42,13 @@ case "$1" in esac CANDIDATES="$@" +if [ ${#} -gt 50 ] && $NOTIFY ; then + echo + figlet "No." + echo "Do not schedule more than 50 packages with notification. If you really really need to spam the IRC channel this much, use a loop to achieve that. Exiting." + echo + exit 1 +fi check_candidates if [ ${#PACKAGE_IDS} -gt 256 ] ; then BLABLABLA="✂…" -- cgit v1.2.3-54-g00ecf