From b59d7a773a0d491fb1ca3c5dd095177bfda8d05e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 18 Aug 2016 09:20:44 +0200 Subject: Fix annoyme script --- local/bin/annoyme | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'local') diff --git a/local/bin/annoyme b/local/bin/annoyme index 99c6392..92a42d4 100755 --- a/local/bin/annoyme +++ b/local/bin/annoyme @@ -2,15 +2,15 @@ DOT_ANNOYME=~/.annoyme -for NAME in `ls | grep -E '.pid$' | sed 's/\.pid$//'`; do +for NAME in `ls "$DOT_ANNOYME" | grep -E '.pid$' | sed 's/\.pid$//'`; do echo -e "\033[0;31m$NAME:\033[0m" `cat "$DOT_ANNOYME/$NAME.desc"` echo -ne "\033[0;1m Y/n: \033[0;0m" read if [[ $REPLY =~ ^[Yy]?$ ]]; then if $DOT_ANNOYME/$NAME.script > "$DOT_ANNOYME/$NAME.out"; then - kill -SIGUSR1 `cat $NAME.pid` + kill -SIGUSR1 `cat "$DOT_ANNOYME/$NAME.pid"` else - kill -SIGUSR2 `cat $NAME.pid` + kill -SIGUSR2 `cat "$DOT_ANNOYME/$NAME.pid"` fi fi echo -- cgit v1.2.3