summaryrefslogtreecommitdiff
path: root/src/xi.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-06 18:39:20 +0100
committerdavidovski <david@davidovski.xyz>2022-06-06 18:39:20 +0100
commitdd8004ccbf58b546f48205d2878d9101bbfcaadc (patch)
tree7864c5224a4728a37f858f3703e05286bb6a2687 /src/xi.sh
parenta8c14970881292501f40c3cf1f5c36b71525fee0 (diff)
fixed sort to be faster
Diffstat (limited to 'src/xi.sh')
-rwxr-xr-xsrc/xi.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/xi.sh b/src/xi.sh
index 8dd848c..000eba5 100755
--- a/src/xi.sh
+++ b/src/xi.sh
@@ -148,7 +148,7 @@ else
shift
checkroot
- [ "$#" = "0" ] && set -- $(list_installed)
+ [ "$#" = "0" ] && set -- $(installed)
toinstall=${CACHE_DIR}/toinstall
@@ -233,7 +233,10 @@ else
shift
[ -z "$*" ] && set -- $(ls ${INSTALLED_DIR})
while [ ! -z "$*" ]; do
- validate_files $1 || printf "${LIGHT_RED}Failed to verify $1\n"
+ validate_files $1 || {
+ ${QUIET} && printf "%s\n" $1 || printf "${LIGHT_RED}Failed to verify $1\n"
+
+ }
shift
done
;;