From adffb32537d8c1c6057101a34cb33fffc8316d08 Mon Sep 17 00:00:00 2001 From: merakor Date: Fri, 4 Sep 2020 08:00:49 +0000 Subject: src/: prefer the cpt-lib on the current directory. FossilOrigin-Name: ea0a950e2247b056b0594baddb184f99aa8e39f492fa50c968e904b9dd2e2aa7 --- src/cpt-update | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/cpt-update') diff --git a/src/cpt-update b/src/cpt-update index bbda066..39399c9 100755 --- a/src/cpt-update +++ b/src/cpt-update @@ -1,8 +1,7 @@ #!/bin/sh -ef # Check for updates -# 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##*/} [options]" -- cgit v1.2.3