fix dependency installer of bluebomb script

This commit is contained in:
urmum-69 2021-01-16 12:35:30 +00:00
parent 4361343499
commit 46b5eaa522
No known key found for this signature in database
GPG key ID: DA3E39691FDC863B

View file

@ -137,7 +137,7 @@ for i in "${dependencies[@]}"; do
[[ -z "$(command -v "$i")" ]] && missing+=("$i")
done
for i in "${missing[@]}"; do
[[ -n $pm ]] && printf "\n* %s is missing! Attempting to install using detected package manager (you may be prompted for your password)...\n" "$i" | fold -s -w "$(tput cols)" && $sudo0 $pm $(indep $i) || ex "* $i is missing! Please install it using your preferred package manager."
[[ -n $pm ]] && printf "\n* %s is missing! Attempting to install using detected package manager (you may be prompted for your password)...\n" "$i" | fold -s -w "$(tput cols)" && $sudo0 $pmi $(indep $i) || ex "* $i is missing! Please install it using your preferred package manager."
done; unset i
## detect init system