aboutsummaryrefslogtreecommitdiff
path: root/src/cpt-fetch
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-09-04 08:00:49 +0000
committermerakor <cem@ckyln.com>2020-09-04 08:00:49 +0000
commitadffb32537d8c1c6057101a34cb33fffc8316d08 (patch)
tree44fb96ef71028625f5b4c37a346fcd48d25f28da /src/cpt-fetch
parent88c6043753abf9686a2f6a18a216bc75b9e15586 (diff)
downloadcpt-adffb32537d8c1c6057101a34cb33fffc8316d08.tar.gz
src/: prefer the cpt-lib on the current directory.
FossilOrigin-Name: ea0a950e2247b056b0594baddb184f99aa8e39f492fa50c968e904b9dd2e2aa7
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 ;;