From 1dd67740ecb133216e31d7a82895d44c0cd52993 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 17 Jan 2018 11:57:24 +0100 Subject: bin/ii-connect: use absolute paths --- bin/ii-connect | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/ii-connect') diff --git a/bin/ii-connect b/bin/ii-connect index a8c4cc9..bb86b8b 100755 --- a/bin/ii-connect +++ b/bin/ii-connect @@ -31,8 +31,8 @@ if ! grep ' buildmaster\.archlinux32\.org .* buildmaster$' "${irc_dir}/out" | \ fi # start watch daemon if not running yet -if ! pgrep -xf 'SCREEN -d -m ii-connect watch' > /dev/null; then - screen -d -m ii-connect watch +if ! pgrep -xf 'SCREEN -S ii-connect\.watch -d -m .*/ii-connect watch' > /dev/null; then + screen -S ii-connect.watch -d -m "${base_dir}/bin/ii-connect" watch fi # watch if asked to @@ -61,7 +61,7 @@ if [ "$1" = 'watch' ]; then while read -r line; do reason=$( echo "${line}" | \ - xargs why-dont-you 2>&1 + xargs "${base_dir}/bin/why-dont-you" 2>&1 ) if [ "$(echo "${reason}" | wc -l)" -le 5 ]; then echo "${reason}" -- cgit v1.2.3