testing quite brutally..

This commit is contained in:
pika 2025-05-19 10:58:19 +02:00
parent ef1faaea5d
commit cfc04a18c0

View file

@ -141,8 +141,11 @@ checkAndInstall() {
# ─< if it's not a list, then just check and install the package.. >──────────────────────
if [[ -z $2 ]]; then
if ! command_exists "$1"; then
echo_pkg deps "Installing $1 .."
run _install "$1"
if run _install "$1"; then
echo_pkg deps "$1 - ${GREEN}installed"
else
echo_pkg deps "$1 is already installed.."
fi
else
echo_pkg deps "skipping $1 - as it's already installed.."
fi
@ -152,8 +155,11 @@ checkAndInstall() {
for deps in "${@}"; do
echo_pkg deps "Installing $deps"
if ! command_exists $deps; then
echo_pkg deps "$deps is not installed. Installing it now.."
run _install "$deps"
if run _install "$deps"; then
echo_pkg deps "$deps - ${GREEN}installed"
else
echo_pkg deps "$deps is already installed.."
fi
else
echo_pkg deps "skipping $deps - as it's already installed.."
fi