From 9a46844693909ac5c82298d98ec81a75304e1e5a Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 3 Apr 2018 14:50:41 +0200 Subject: substitute bin/wtf by pkgfile --- bin/ii-connect | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'bin/ii-connect') diff --git a/bin/ii-connect b/bin/ii-connect index 7ac589c..bb775a9 100755 --- a/bin/ii-connect +++ b/bin/ii-connect @@ -94,10 +94,9 @@ if [ "$1" = 'watch' ]; then p ' "${out_file}" | \ while read -r line; do - reason=$( - echo "${line}" | \ - xargs "${base_dir}/bin/wtf" 2>&1 - ) + if ! reason=$(pkgfile "${line}"); then + reason="Huh, I don't know that one." + fi if [ "$(echo "${reason}" | wc -l)" -le 5 ]; then echo "${reason}" else -- cgit v1.2.3