commit 8ac3c2113d3c743c3fda7483864e9477151dff84 parent a6a03f0eb4124d4560619486454b28238aaa7cdf Author: sin <sin@2f30.org> Date: Wed, 29 Oct 2014 14:45:18 +0000 Ensure that any $ircdir will work Diffstat:
M | hysteria-monitor | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hysteria-monitor b/hysteria-monitor @@ -9,8 +9,9 @@ else . "$1" fi +cd "$ircdir" while :; do - for n in $(find "$ircdir" -name "in" | sort -r 2>/dev/null); do + for n in $(find . -name "in" | sort -r 2>/dev/null); do title=$(printf '%s' "$n" | awk -F/ '{ \ if (NF == 4) \ print $2":"$3; \