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:
parent
812653d598
commit
3b24c0fe4e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user