From 292945be7938f588d8ed2c90fd5759eca12eda10 Mon Sep 17 00:00:00 2001 From: merakor Date: Tue, 5 Jan 2021 00:44:27 +0000 Subject: cpt-depends: minor changes - cleanup usage - don't return with failure if a package doesn't have dependencies FossilOrigin-Name: ea75189322f12eda82c9dfdff60f5997d79c97e8ecf4a433df1be024776ba651 --- contrib/cpt-depends | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib') diff --git a/contrib/cpt-depends b/contrib/cpt-depends index cd11f46..1076442 100755 --- a/contrib/cpt-depends +++ b/contrib/cpt-depends @@ -3,11 +3,11 @@ case "$1" in --help|-h) - printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} [pkg]" + printf 'usage: %s [pkg]\n' "${0##*/}" exit 0 ;; '') set -- "${PWD##*/}" esac cpt-list "$1" >/dev/null -cat "$CPT_ROOT/var/db/cpt/installed/$1/depends" 2>/dev/null +cat "$CPT_ROOT/var/db/cpt/installed/$1/depends" 2>/dev/null ||: -- cgit v1.2.3