aboutsummaryrefslogtreecommitdiff
path: root/src/cpt-remove
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpt-remove')
-rwxr-xr-xsrc/cpt-remove3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cpt-remove b/src/cpt-remove
index 5462b4b..53f0a1f 100755
--- a/src/cpt-remove
+++ b/src/cpt-remove
@@ -1,8 +1,7 @@
#!/bin/sh -ef
# Remove a package
-# 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##*/} [pkg...]"