testing quite brutally..
This commit is contained in:
parent
ef1faaea5d
commit
cfc04a18c0
1 changed files with 10 additions and 4 deletions
14
distros.sh
14
distros.sh
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue