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 # ------------------------------------------------------