aboutsummaryrefslogtreecommitdiff
path: root/src/cpt-search
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpt-search')
-rwxr-xr-xsrc/cpt-search3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cpt-search b/src/cpt-search
index cc37d9a..dbb4eff 100755
--- a/src/cpt-search
+++ b/src/cpt-search
@@ -1,8 +1,7 @@
#!/bin/sh -ef
# Search for a package
-# shellcheck disable=1091
-if command -v cpt-lib >/dev/null; then . cpt-lib; else . ./cpt-lib; fi
+if [ -f ./cpt-lib ]; then . ./cpt-lib; else . cpt-lib; fi
parser_definition() {
setup REST -- "usage: ${0##*/} [pkg...]"