From 1b2b9cbc0f2b99485b90a97c47ab3812628a2069 Mon Sep 17 00:00:00 2001 From: qo-op Date: Tue, 15 Dec 2020 23:42:52 +0100 Subject: [PATCH] isinotifywaitRunning --- cron_MINUTE.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index 1411c1b..dee9289 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -94,7 +94,7 @@ fi # OPTION 2: DELETING SOURCE # NB: INDEX published in ~/.zen/ipfs/xbian IS ONLY GROWING... # Must manualy run "ipfs unpin" + "ipfs rm" to clean bad files from ~/.zen/ipfs/xbian/INDEXFILES !!! -if [[ $isinotifywaitRunning == "" ]]; then +if [[ ! $isinotifywaitRunning ]]; then inotifywait -e close_write -m ~/astroport/films | while read dir flags file; do $MY_PATH/zen/xbian_FASTRXBIAN.sh "$file"; done & inotifywait -e close_write -m ~/astroport/animes | while read dir flags file; do $MY_PATH/zen/xbian_AASTRXBIAN.sh "$file"; done & fi