remove-old-kernels: Improve wording of kernel lists descriptions

Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
This commit is contained in:
Виталий Чикунов 2022-06-26 09:32:50 +03:00
parent 6091d09c2a
commit c6deb068ef

View File

@ -179,7 +179,7 @@ for flavour in $flavours; do
done
howmuch=$(echo "$keep_kernels" | grep -c .)
[ "$howmuch" -eq 1 ] && phrase="this kernel" || phrase="these $BRIGHT$howmuch$NORM kernels"
echo "Not removing $phrase (reason why keeping):"
echo "Not removing $phrase (with the reason why):"
printf "%s" "$keep_kernels"
[ -n "$other_flavours" ] && echo "Specify -A to remove all kernels of other flavours than $kernel_flavour."
echo
@ -191,7 +191,7 @@ fi
howmuch=$(echo "$remove_kernels" | grep -c .)
[ "$howmuch" -eq 1 ] && phrase="this kernel" || phrase="these $BRIGHT$howmuch$NORM kernels"
echo "Removing $phrase:"
echo "Will be removing $phrase:"
echo "$remove_kernels"
if [ "$UID" != "0" ]; then