From b167f67c9fe1fdb905ddbbdf6b1b739a729aa95f Mon Sep 17 00:00:00 2001 From: Leo Vivier Date: Fri, 21 Oct 2022 17:47:27 +0200 Subject: Fix cond --- 2022/organizers-notebook/index.org | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to '2022/organizers-notebook') diff --git a/2022/organizers-notebook/index.org b/2022/organizers-notebook/index.org index 059d01e6..667747f0 100644 --- a/2022/organizers-notebook/index.org +++ b/2022/organizers-notebook/index.org @@ -3396,7 +3396,7 @@ plural() { "is" ) "are" ;; - * ) + ,* ) "${1}s" esac fi @@ -3410,10 +3410,14 @@ notify() { echo "Currently waiting for prerec" prerecs_number_past=$(cat "$data") -prerecs_number_current="$(TERM=xterm ssh orga@media.emacsconf.org -- ls -1 /srv/upload | wc -l)" -diff=$((prerecs_number_current - prerecs_number_past)) +diff=0 -while [ $diff = 0 ]; do +while true; do + prerecs_number_current="$(TERM=xterm ssh orga@media.emacsconf.org -- ls -1 /srv/upload | wc -l)" + diff=$((prerecs_number_current - prerecs_number_past)) + if [ $diff -gt 0 ]; then + break + fi sleep "$sleep_duration" done -- cgit v1.2.3