remove_old_kernel.sh: minor changes on script output.

This commit is contained in:
Christoph 2018-12-30 14:45:55 +01:00
parent 66ee242d8a
commit dc2ecbe074

View File

@ -297,6 +297,7 @@ if $terminal && ! $BATCH_MODE ; then
clean_up 0
fi
if [[ -n "$rc_kernel_pakages" ]]; then
echo ""
echononl "Remove not fully deinstalled kernel packages? [\033[1myes/no\033[m]: "
read OK
@ -305,14 +306,17 @@ if $terminal && ! $BATCH_MODE ; then
read OK
done
[[ "${OK,,}" = "yes" ]] || rc_kernel_pakages=""
fi
echononl "Removing unsed kernel packages? [\033[1myes/no\033[m]: "
if [[ -n "$unused_kernel_pakages" ]]; then
echononl "Remove unsed kernel packages? [\033[1myes/no\033[m]: "
read OK
while [[ "${OK,,}" != "yes" ]] && [[ "${OK,,}" != "no" ]] ; do
echononl "\033[33mWrong entry!\033[m [\033[1myes/no\033[m]: "
read OK
done
[[ "${OK,,}" = "yes" ]] || unused_kernel_pakages=""
fi
fi