summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-17 00:17:12 +0100
committerdavidovski <david@davidovski.xyz>2022-05-17 00:17:12 +0100
commit072ec9b4489017b272ff221c19b8af795ef70e47 (patch)
tree945ec5bbe2601f0b7ec4ededf40427323e8f0f2c
parent038a56d555833d2db3af772b890a8fc8c283120e (diff)
implemented xi info
-rwxr-xr-xsrc/xi.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/xi.sh b/src/xi.sh
index b16a36e..339f51f 100755
--- a/src/xi.sh
+++ b/src/xi.sh
@@ -202,6 +202,17 @@ else
shift
file_info $@
;;
+ "info")
+ shift
+ for package in $@; do
+ infofile=${INSTALLED_DIR}/$package/info
+ [ -f $infofile ] && {
+ cat $infofile
+ } || {
+ printf "Package info for $package could not be found!"
+ }
+ done
+ ;;
"verify")
shift
[ -z "$*" ] && set -- $(ls ${INSTALLED_DIR})