From 69369f36fdaace68fd0b902f8688d1485b1074ff Mon Sep 17 00:00:00 2001 From: Solomon Laing Date: Sun, 29 Aug 2021 16:18:52 +0930 Subject: [PATCH] minor changes --- install-dependencies | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/install-dependencies b/install-dependencies index aac11b7..3492760 100755 --- a/install-dependencies +++ b/install-dependencies @@ -85,7 +85,17 @@ if [ $laptop -eq 1 ]; then fi if ! yay -Qi $dependency &> /dev/null; then - failures+=("$dependency") + # there are likely some dependencies that won't have an associated command + # TODO: find a better way to deal with this, eg have something like xorg COMMAND xprop in default programs + + # just catch everything, ik there are better ways to do this + case $failure in + xorg) + ;; + *) + failures+=("$dependency") + ;; + esac fi done fi