aboutsummaryrefslogtreecommitdiff
path: root/local/bin/annoyme
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2016-08-18 09:20:44 +0200
committerKarel Kočí <karel.koci@nic.cz>2016-08-18 09:23:48 +0200
commitb59d7a773a0d491fb1ca3c5dd095177bfda8d05e (patch)
tree7470de080983aefbf39e830dfbb78e8a1dd6ce1f /local/bin/annoyme
parentf9622aba4db82657b419e8d0fb280c33ad355622 (diff)
downloadmyconfigs-b59d7a773a0d491fb1ca3c5dd095177bfda8d05e.tar.gz
myconfigs-b59d7a773a0d491fb1ca3c5dd095177bfda8d05e.tar.bz2
myconfigs-b59d7a773a0d491fb1ca3c5dd095177bfda8d05e.zip
Fix annoyme script
Diffstat (limited to 'local/bin/annoyme')
-rwxr-xr-xlocal/bin/annoyme6
1 files changed, 3 insertions, 3 deletions
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