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:
parent
073cdd0ba8
commit
f3f99d45b8
@ -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