update-kernel: Don't say 'and update its modules' if there's none

Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
This commit is contained in:
Виталий Чикунов 2022-12-13 21:14:35 +03:00
parent e119bb74b7
commit b856cf79f3

View File

@ -546,7 +546,9 @@ if [ -z "$needwork" ]; then
fi
# ask user
echo -n "Try to install new kernel ${BRIGHT}kernel-image-$kernel_flavour-$userkmaxver${NORM} and update its modules [Y/n]? "
echo -n "Try to install new kernel ${BRIGHT}kernel-image-$kernel_flavour-$userkmaxver${NORM}"
[ -n "$modules_to_show" ] && echo -n " and update its modules"
echo -n " [Y/n]? "
if [ -n "$force" ]; then
echo "yes"
else