aboutsummaryrefslogtreecommitdiff
path: root/src/cpt-fetch
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpt-fetch')
-rwxr-xr-xsrc/cpt-fetch3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cpt-fetch b/src/cpt-fetch
index 7d5be95..d75edd5 100755
--- a/src/cpt-fetch
+++ b/src/cpt-fetch
@@ -1,8 +1,7 @@
#!/bin/sh -ef
# Fetch repositories
-# 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##*/}"; exit 1 ;;