commit 86116f6df8b1baaae5946be71e13110327cace9a
parent 7d49ca202c51c390be347e7cb0adf6eaf770274b
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 9 Nov 2014 14:16:43 +0000
hysteria-monitor: wait until ircdir exists
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/hysteria-monitor b/hysteria-monitor
@@ -9,7 +9,10 @@ else
. "$1"
fi
-cd "$ircdir"
+while :; do
+ cd "$ircdir" && break
+ sleep 1
+done
while :; do
for n in $(find . -name "in" | sort -r 2>/dev/null); do
title=$(printf '%s' "$n" | awk -F/ '{ \