diff options
author | Leo Vivier <zaeph@zaeph.net> | 2022-10-21 17:32:55 +0200 |
---|---|---|
committer | Leo Vivier <zaeph@zaeph.net> | 2022-10-21 17:32:55 +0200 |
commit | 5d5ca79c681f2a78967ddb9ac6527fb77935b40e (patch) | |
tree | 5fd0b1566adecd379cd60e4ce3b9b7eaf03ffc62 /2022/organizers-notebook | |
parent | f9ea05ec16bada6539c8a7588ed4662da6c5f333 (diff) | |
download | emacsconf-wiki-5d5ca79c681f2a78967ddb9ac6527fb77935b40e.tar.xz emacsconf-wiki-5d5ca79c681f2a78967ddb9ac6527fb77935b40e.zip |
Fix unmodified name
Diffstat (limited to '2022/organizers-notebook')
-rw-r--r-- | 2022/organizers-notebook/index.org | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/2022/organizers-notebook/index.org b/2022/organizers-notebook/index.org index 89dc1c4b..9d80af36 100644 --- a/2022/organizers-notebook/index.org +++ b/2022/organizers-notebook/index.org @@ -3388,8 +3388,6 @@ sleep_duration=1800 data=prerec-wait-new.data touch check-new-prerecs.data -prerecs_number_current="$(TERM=xterm ssh orga@media.emacsconf.org -- ls -1 /srv/upload | wc -l)" - plural() { if [ "$2" = 1 ] || [ "$2" = -1 ]; then echo "${1}" @@ -3409,11 +3407,12 @@ notify() { notify-send -t 0 "EmacsConf" "$1" } -prerecs_number_past=$(cat check-new-prerecs.data) -diff=$((prerecs_number_current - prerecs_number_past)) - 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)) + while [ $diff = 0 ]; do sleep "$sleep_duration" done |