aboutsummaryrefslogtreecommitdiff
path: root/src/cpt-list
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpt-list')
-rwxr-xr-xsrc/cpt-list3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cpt-list b/src/cpt-list
index b808e74..5179dc5 100755
--- a/src/cpt-list
+++ b/src/cpt-list
@@ -1,8 +1,7 @@
#!/bin/sh -ef
# List installed packages
-# 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
case "$1" in
--help|-h) out "usage: ${0##*/} [pkg...]"; exit 1 ;;