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 it's not a list, then just check and install the package.. >──────────────────────
|
||||||
if [[ -z $2 ]]; then
|
if [[ -z $2 ]]; then
|
||||||
if ! command_exists "$1"; then
|
if ! command_exists "$1"; then
|
||||||
echo_pkg deps "Installing $1 .."
|
if run _install "$1"; then
|
||||||
run _install "$1"
|
echo_pkg deps "$1 - ${GREEN}installed"
|
||||||
|
else
|
||||||
|
echo_pkg deps "$1 is already installed.."
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo_pkg deps "skipping $1 - as it's already installed.."
|
echo_pkg deps "skipping $1 - as it's already installed.."
|
||||||
fi
|
fi
|
||||||
|
@ -152,8 +155,11 @@ checkAndInstall() {
|
||||||
for deps in "${@}"; do
|
for deps in "${@}"; do
|
||||||
echo_pkg deps "Installing $deps"
|
echo_pkg deps "Installing $deps"
|
||||||
if ! command_exists $deps; then
|
if ! command_exists $deps; then
|
||||||
echo_pkg deps "$deps is not installed. Installing it now.."
|
if run _install "$deps"; then
|
||||||
run _install "$deps"
|
echo_pkg deps "$deps - ${GREEN}installed"
|
||||||
|
else
|
||||||
|
echo_pkg deps "$deps is already installed.."
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo_pkg deps "skipping $deps - as it's already installed.."
|
echo_pkg deps "skipping $deps - as it's already installed.."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue