Thread (14 messages) 14 messages, 2 authors, 2021-06-22

[kvm-unit-tests GIT PULL 04/12] configure: s390x: Check if the host key document exists

From: Janosch Frank <frankja@linux.ibm.com>
Date: 2021-06-22 08:21:44
Also in: linux-s390
Subsystem: the rest · Maintainer: Linus Torvalds

I'd rather have a readable error message than make failing the build
with cryptic errors.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Thomas Huth <redacted>
---
 configure | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/configure b/configure
index b8442d61..71aaad43 100755
--- a/configure
+++ b/configure
@@ -137,6 +137,11 @@ while [[ "$1" = -* ]]; do
     esac
 done
 
+if [ -n "$host_key_document" ] && [ ! -f "$host_key_document" ]; then
+    echo "Host key document doesn't exist at the specified location."
+    exit 1
+fi
+
 if [ "$erratatxt" ] && [ ! -f "$erratatxt" ]; then
     echo "erratatxt: $erratatxt does not exist or is not a regular file"
     exit 1
-- 
2.31.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help