summaryrefslogtreecommitdiff
path: root/src/xi.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/xi.sh')
-rwxr-xr-xsrc/xi.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/xi.sh b/src/xi.sh
index 6cbb315..9bb6bbf 100755
--- a/src/xi.sh
+++ b/src/xi.sh
@@ -47,8 +47,10 @@ Available Commands:
search the database for a package
files [package]
list files belonging to a package
+ verify [package]
+ verify that a package's files are intact
list
- list available packagesa
+ list available packages
list-installed
lists installed packages
file [path]
@@ -176,6 +178,14 @@ else
shift
file_info $@
;;
+ "verify")
+ shift
+ [ -z "$*" ] && set -- $(ls ${INSTALLED_DIR})
+ while [ ! -z "$*" ]; do
+ validate_files $1 || printf "${LIGHT_RED}Failed to verify $1\n"
+ shift
+ done
+ ;;
"bootstrap")
shift
. ${LIBDIR}/bootstrap.sh