Skip to contentSkip to conversation

main - vdo: prompt with no return failure

PATCH Zdenek Kabelac 1 participant 1 message Sep 13, 2021

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=3b24c0fe4e197383101eae53b14f19586cf2eda1
Commit:        3b24c0fe4e197383101eae53b14f19586cf2eda1
Parent:        812653d59806439379d80bb8124f6962ae42d46a
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Sep 10 22:39:23 2021 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Sep 13 12:34:41 2021 +0200

vdo: prompt with no return failure

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

---
 scripts/lvm_import_vdo.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lvm_import_vdo.sh +1 -1
index a72056721..06cdb106d 100755
@@ -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