summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-17 11:57:24 +0100
committerErich Eckner <git@eckner.net>2018-01-17 11:57:24 +0100
commit1dd67740ecb133216e31d7a82895d44c0cd52993 (patch)
tree93fcf0da9353725e5c6132d5d170d7ab0f4d8795
parent03c192ba6be8e441690b7e5a138f171768c25980 (diff)
downloadbuilder-1dd67740ecb133216e31d7a82895d44c0cd52993.tar.xz
bin/ii-connect: use absolute paths
-rwxr-xr-xbin/ii-connect6
1 files changed, 3 insertions, 3 deletions
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}"