remove_old_kernel.sh: minor changes on script output.
This commit is contained in:
parent
66ee242d8a
commit
dc2ecbe074
@ -297,22 +297,26 @@ if $terminal && ! $BATCH_MODE ; then
|
|||||||
clean_up 0
|
clean_up 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ""
|
if [[ -n "$rc_kernel_pakages" ]]; then
|
||||||
echononl "Remove not fully deinstalled kernel packages? [\033[1myes/no\033[m]: "
|
echo ""
|
||||||
read OK
|
echononl "Remove not fully deinstalled kernel packages? [\033[1myes/no\033[m]: "
|
||||||
while [[ "${OK,,}" != "yes" ]] && [[ "${OK,,}" != "no" ]] ; do
|
|
||||||
echononl "\033[33mWrong entry!\033[m [\033[1myes/no\033[m]: "
|
|
||||||
read OK
|
read OK
|
||||||
done
|
while [[ "${OK,,}" != "yes" ]] && [[ "${OK,,}" != "no" ]] ; do
|
||||||
[[ "${OK,,}" = "yes" ]] || rc_kernel_pakages=""
|
echononl "\033[33mWrong entry!\033[m [\033[1myes/no\033[m]: "
|
||||||
|
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
|
||||||
read OK
|
echononl "Remove unsed kernel packages? [\033[1myes/no\033[m]: "
|
||||||
while [[ "${OK,,}" != "yes" ]] && [[ "${OK,,}" != "no" ]] ; do
|
|
||||||
echononl "\033[33mWrong entry!\033[m [\033[1myes/no\033[m]: "
|
|
||||||
read OK
|
read OK
|
||||||
done
|
while [[ "${OK,,}" != "yes" ]] && [[ "${OK,,}" != "no" ]] ; do
|
||||||
[[ "${OK,,}" = "yes" ]] || unused_kernel_pakages=""
|
echononl "\033[33mWrong entry!\033[m [\033[1myes/no\033[m]: "
|
||||||
|
read OK
|
||||||
|
done
|
||||||
|
[[ "${OK,,}" = "yes" ]] || unused_kernel_pakages=""
|
||||||
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user