Skip to content

Commit

Permalink
Jamdir not updated *and* no existing jam directories
Browse files Browse the repository at this point in the history
  • Loading branch information
pljones committed Mar 1, 2021
1 parent f89fece commit 3407939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bash/inotify-publisher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ MOST_RECENT=0

# Do not return until a new jamdir exists in the recording dir
wait_for_new_jamdir () {
while [[ ${MOST_RECENT} -ge $(date -r "${JAMULUS_RECORDING_DIR}" "+%s") ||
while [[ ${MOST_RECENT} -ge $(date -r "${JAMULUS_RECORDING_DIR}" "+%s") &&
-z $(find -L "${JAMULUS_RECORDING_DIR}" -mindepth 1 -type d -prune) ]]
do
inotifywait -q -t ${CHECK_INTERVAL} -e create -e close_write "${JAMULUS_RECORDING_DIR}"
Expand Down

0 comments on commit 3407939

Please sign in to comment.