update-kernel: Show if user aborted install at the confirmation prompt

Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
This commit is contained in:
Виталий Чикунов 2022-04-07 05:33:39 +03:00
parent f8f27a7078
commit 973b740da2

View File

@ -365,7 +365,7 @@ if [ "$force" = 1 ]; then
echo "yes"
else
while true; do
read -r || exit 1
read -r || { echo "Aborting"; exit 1; }
shopt -s nocasematch
case "$REPLY" in
n|no|0|q) exit 0 ;;