diff options
author | Leo Vivier <zaeph@zaeph.net> | 2022-10-21 17:47:27 +0200 |
---|---|---|
committer | Leo Vivier <zaeph@zaeph.net> | 2022-10-21 17:47:27 +0200 |
commit | b167f67c9fe1fdb905ddbbdf6b1b739a729aa95f (patch) | |
tree | e4f577f341918d65fa9f067211b8fdd4dc6565a8 /2022/organizers-notebook | |
parent | 7d8553380a41a9ec0e54a7fb63737cc229f09cfd (diff) | |
download | emacsconf-wiki-b167f67c9fe1fdb905ddbbdf6b1b739a729aa95f.tar.xz emacsconf-wiki-b167f67c9fe1fdb905ddbbdf6b1b739a729aa95f.zip |
Fix cond
Diffstat (limited to '2022/organizers-notebook')
-rw-r--r-- | 2022/organizers-notebook/index.org | 12 |
1 files changed, 8 insertions, 4 deletions
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 |