improved checks display on some modules

This commit is contained in:
levasseur
2022-02-18 18:19:15 +01:00
parent 3f554d8bb7
commit 198763c01c
3 changed files with 18 additions and 16 deletions

View File

@@ -52,20 +52,22 @@ install_pkg()
precheck_install_pkg()
{
if [[ -z PKGS_RMLIST ]]; then
prnt I "No package to remove."
prnt m " * No package to remove."
else
prnt I "$(echo $PKGS_RMLIST | wc -w) package to remove."
prnt m " * $(echo $PKGS_RMLIST | wc -w) package to remove."
fi
if [[ -z PKGS_BLACKLIST ]]; then
prnt W "The packages $pkg will be placed into the blacklist !"
prnt m " * The packages $pkg will be placed into the blacklist !"
file_must_exists pkgman/blacklist.conf
else
prnt m " * No package to blacklist."
fi
if [[ -z $PKGSEL ]]; then
prnt W "No additionnal package to install !"
prnt m " * No additionnal package to install !"
else
prnt I "$(echo $PKGSEL | wc -w) additionnal package have to be installed."
prnt m " * $(echo $PKGSEL | wc -w) additionnal package have to be installed."
fi
}