index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/wtf | 11 |
@@ -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 ' |