aboutsummaryrefslogtreecommitdiff
path: root/contrib/cpt-depends
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-01-05 00:44:27 +0000
committermerakor <cem@ckyln.com>2021-01-05 00:44:27 +0000
commit292945be7938f588d8ed2c90fd5759eca12eda10 (patch)
treef2f29fb722a01c5386b6d07ef3103896e6c1fbe8 /contrib/cpt-depends
parent9727578b3ed4edcbd38051cdd80785eb6681c842 (diff)
downloadcpt-292945be7938f588d8ed2c90fd5759eca12eda10.tar.gz
cpt-depends: minor changes
- cleanup usage - don't return with failure if a package doesn't have dependencies FossilOrigin-Name: ea75189322f12eda82c9dfdff60f5997d79c97e8ecf4a433df1be024776ba651
Diffstat (limited to 'contrib/cpt-depends')
-rwxr-xr-xcontrib/cpt-depends4
1 files changed, 2 insertions, 2 deletions
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 ||: