Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/wtf11
1 files changed, 5 insertions, 6 deletions
diff --git a/bin/wtf b/bin/wtf
index 232ffe7..b87a41f 100755
--- a/bin/wtf
+++ b/bin/wtf
@@ -1,9 +1,8 @@
#!/bin/sh
-# shellcheck disable=SC2119,SC2120
-
-# shellcheck source=../lib/load-configuration
-. "${0%/*}/../lib/load-configuration"
+base_dir=$(
+ readlink -f "${0%/*}/.."
+)
# TODO: search i486, too
@@ -13,9 +12,9 @@ pkgfile -wC "${base_dir}/misc/pacman-i686.conf" -s "${search##*/}" | \
xargs -rn1 pkgfile -wC "${base_dir}/misc/pacman-i686.conf" -l | \
if printf '%s\n' "${search}" | \
grep -q '^/'; then
- grep -w "${search}" || true
+ grep -w "${search}"
else
- grep "/${search}\\(/\\|\$\\)" || true
+ grep "/${search}\\(/\\|\$\\)"
fi | \
sort -k2,2 | \
sed '