summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_schedule_on_demand.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/reproducible_schedule_on_demand.sh b/bin/reproducible_schedule_on_demand.sh
index e873154b..1002890e 100755
--- a/bin/reproducible_schedule_on_demand.sh
+++ b/bin/reproducible_schedule_on_demand.sh
@@ -33,6 +33,10 @@ check_candidates() {
let "TOTAL+=1"
fi
done
+ if [ $TOTAL -eq 0 ] ; then
+ echo "No packages to schedule, exiting."
+ exit 0
+ fi
}
@@ -43,7 +47,7 @@ check_candidates() {
set +x
CANDIDATES="$@"
check_candidates
-if [ $#{PACKAGES} -gt 256 ] ; then
+if [ ${#PACKAGES} -gt 256 ] ; then
BLABLABLA="..."
fi
PACKAGES=$(echo $PACKAGES)