1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

vdo: prompt with no return failure

Exit 1  (failure) when prompt for conversion is answered as 'No'.

(cherry picked from commit 3b24c0fe4e)
This commit is contained in:
Zdenek Kabelac 2021-09-10 22:39:23 +02:00 committed by Marian Csontos
parent 073cdd0ba8
commit f3f99d45b8

View File

@ -356,7 +356,7 @@ EOF
read -n 1 -s ANSWER
case "${ANSWER:0:1}" in
y|Y ) echo "Yes" ;;
* ) echo "No" ; PROMPTING=""; exit ;;
* ) echo "No" ; PROMPTING=""; exit 1 ;;
esac
PROMPTING=""
YES="-y" # From now, now prompting