diff options
Diffstat (limited to 'src/xi.sh')
-rwxr-xr-x | src/xi.sh | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 |