1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-26 03:22:12 +03:00

vdo: prompt with no return failure

Exit 1  (failure) when prompt for conversion is answered as 'No'.
This commit is contained in:
Zdenek Kabelac 2021-09-10 22:39:23 +02:00
parent 812653d598
commit 3b24c0fe4e

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