commit 3f92b053cb1a2000f2ab9abfdfb314b5a19f8a2c
parent da5cd0b2fc50d72fa3fee252bb66c17c625a1ed4
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date: Wed, 14 Apr 2021 17:21:47 +0200
watcher: now exits if inotifywait can not be found
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/watcher b/watcher
@@ -6,6 +6,8 @@ kill_viewer()
exit
}
+which inotifywait || exit
+exec 0<&-
SOURCE="${1:?"SOURCE required as 1st arg"}"
VIEWER="${2:?"VIEWER required as 2nd arg"}"
SCRIPT="${3:?"SCRIPT required as 3rd arg"}"