aboutsummaryrefslogtreecommitdiff
path: root/src/cpt-alternatives
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpt-alternatives')
-rwxr-xr-xsrc/cpt-alternatives3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cpt-alternatives b/src/cpt-alternatives
index f0d2be0..e516730 100755
--- a/src/cpt-alternatives
+++ b/src/cpt-alternatives
@@ -1,8 +1,7 @@
#!/bin/sh -ef
# List and swap to alternatives
-# 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 --version|--help|-v|-h|'') ;; *)
[ -w "$CPT_ROOT/" ] || [ "$uid" = 0 ] || {