From 2b1a2d7ffae47b228159ed2db03d086c50fe81d9 Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Sun, 12 Nov 2023 19:57:18 +0100 Subject: [PATCH] Bugfix library --- scripts/installupdates.sh | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/scripts/installupdates.sh b/scripts/installupdates.sh index d726255..265d97c 100755 --- a/scripts/installupdates.sh +++ b/scripts/installupdates.sh @@ -11,9 +11,29 @@ # ----------------------------------------------------- sleep 1 -source ~/dotfiles/.install/library.sh clear +cat <<"EOF" + _ _ _ _ +| | | |_ __ __| | __ _| |_ ___ ___ +| | | | '_ \ / _` |/ _` | __/ _ \/ __| +| |_| | |_) | (_| | (_| | || __/\__ \ + \___/| .__/ \__,_|\__,_|\__\___||___/ + |_| + +EOF + +_isInstalledYay() { + package="$1"; + check="$(yay -Qs --color always "${package}" | grep "local" | grep "${package} ")"; + if [ -n "${check}" ] ; then + echo 0; #'0' means 'true' in Bash + return; #true + fi; + echo 1; #'1' means 'false' in Bash + return; #false +} + # ------------------------------------------------------ # Confirm Start # ------------------------------------------------------