aboutsummaryrefslogtreecommitdiff
path: root/src/cpt-list
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpt-list')
-rwxr-xr-xsrc/cpt-list1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cpt-list b/src/cpt-list
index a924091..47e5d3c 100755
--- a/src/cpt-list
+++ b/src/cpt-list
@@ -35,6 +35,7 @@ if [ "$PKG" ]; then
printf %s "$2"
fi
elif [ "$VERSIONCHECK" ]; then
+ [ "$#" -ge 2 ] || die "Minimum of 2 arguments required, got: $#"
pkg_list "$1" | grep -Fq "$1 $2 $3"
else
[ "$CURRENT" ] && set -- "${PWD##*/}"