aboutsummaryrefslogtreecommitdiff
path: root/contrib/cpt-depends
diff options
context:
space:
mode:
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 ||: