From 91f92daae4ed7feb2687e392e6dadb637eecfbc7 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Fri, 15 Jun 2018 14:26:56 +0530 Subject: [PATCH] Add check for gpg tool if gpg tool is not available then we should should break early. Signed-off-by: Abhijeet Kasurde --- contrib/create-coreos-vdi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contrib/create-coreos-vdi b/contrib/create-coreos-vdi index 4788720ced..2da8c4b0db 100755 --- a/contrib/create-coreos-vdi +++ b/contrib/create-coreos-vdi @@ -39,6 +39,13 @@ if [ $? -ne 0 ]; then exit 1 fi +# GPG tools required +which gpg &>/dev/null +if [ $? -ne 0 ]; then + echo "$0: gpg is required to verify GPG signature." >&2 + exit 1 +fi + if [ -z "${DEST}" ]; then DEST=$PWD fi