diff options
Diffstat (limited to '')
-rw-r--r-- | 2022/organizers-notebook.md | 11 | ||||
-rw-r--r-- | 2022/organizers-notebook/index.org | 9 |
2 files changed, 9 insertions, 11 deletions
diff --git a/2022/organizers-notebook.md b/2022/organizers-notebook.md index 5577e8fb..c2849cc7 100644 --- a/2022/organizers-notebook.md +++ b/2022/organizers-notebook.md @@ -2312,7 +2312,7 @@ Probably focus on grabbing the audio first and seeing what’s worth keeping Make a table of the form -<table id="org46d7f0c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides"> +<table id="org1c3f0f6" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides"> <colgroup> @@ -3926,8 +3926,6 @@ chatter in the other lists Cc’d on this message. Thank you. 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}" @@ -3947,11 +3945,12 @@ chatter in the other lists Cc’d on this message. Thank you. 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 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 |