diff options
author | merakor <cem@ckyln.com> | 2020-05-15 10:27:38 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-05-15 10:27:38 +0000 |
commit | 16d89890200d7745ef0ec1999b9098bf6eb4dabc (patch) | |
tree | 2b8a5d383e10f86163277438ea49c95bc8efaec9 /contrib/kiss-message | |
parent | d88c7c3f97baa5abbb5e7827712c99f10b82c25b (diff) | |
download | cpt-16d89890200d7745ef0ec1999b9098bf6eb4dabc.tar.gz |
contrib: move some utilities to kiss-extra
FossilOrigin-Name: 5fdd54935c99b2416dfc244cf838092ba03423c21c647d74221e65c66923b5e3
Diffstat (limited to 'contrib/kiss-message')
-rwxr-xr-x | contrib/kiss-message | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/contrib/kiss-message b/contrib/kiss-message deleted file mode 100755 index 8b82c86..0000000 --- a/contrib/kiss-message +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -# Show messages from a package in the system database - -case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} [pkg] [pkg]"; exit 0; esac - -for pkg do - # Apply basename stripping so a user could run - # 'kiss-message /var/db/kiss/installed/*' to see - # all the messages on the system. - pkg=${pkg##*/} - msg="$KISS_ROOT/var/db/kiss/installed/$pkg/message" - - # Continue if no messages are available for the package. - [ -f "$msg" ] || continue - - printf '%s\n\033[1m%s\033[m\n%s\n\n' \ - "==============================" \ - "$pkg" \ - "==============================" - cat "$msg" -done |