29 lines
858 B
Diff
29 lines
858 B
Diff
From f3f99d45b89d415528e21a66f94ab4576f95ba56 Mon Sep 17 00:00:00 2001
|
|
From: Zdenek Kabelac <zkabelac@redhat.com>
|
|
Date: Fri, 10 Sep 2021 22:39:23 +0200
|
|
Subject: [PATCH 5/5] vdo: prompt with no return failure
|
|
|
|
Exit 1 (failure) when prompt for conversion is answered as 'No'.
|
|
|
|
(cherry picked from commit 3b24c0fe4e197383101eae53b14f19586cf2eda1)
|
|
---
|
|
scripts/lvm_import_vdo.sh | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/scripts/lvm_import_vdo.sh b/scripts/lvm_import_vdo.sh
|
|
index e5b30d8..06a043c 100755
|
|
--- a/scripts/lvm_import_vdo.sh
|
|
+++ b/scripts/lvm_import_vdo.sh
|
|
@@ -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
|
|
--
|
|
1.8.3.1
|
|
|