You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by bo...@apache.org on 2023/01/07 11:07:40 UTC

[streampipes] branch dev updated: Validate CLI commands and exit with message if any error's. (#1049)

This is an automated email from the ASF dual-hosted git repository.

bossenti pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new 655194fcf Validate CLI commands and exit with message if any error's. (#1049)
655194fcf is described below

commit 655194fcf9f48aeec8060b8a76e75767044f8f92
Author: Jagadesh Adireddi <ja...@conviva.com>
AuthorDate: Sat Jan 7 16:37:35 2023 +0530

    Validate CLI commands and exit with message if any error's. (#1049)
---
 installer/cli/bin/commands/env | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/installer/cli/bin/commands/env b/installer/cli/bin/commands/env
index 27a84e8ec..de09983f5 100755
--- a/installer/cli/bin/commands/env
+++ b/installer/cli/bin/commands/env
@@ -49,6 +49,11 @@ if [ "$#" -gt 3 ]; then
     fatal "Illegal number of arguments, see 'streampipes ${0##*/} --help'"
 fi
 
+if ! docker info > /dev/null 2>&1; then
+  echo "Streampipes environment uses docker, and it isn't running - please start docker and try again!"
+  exit 1
+fi
+
 while [[ "$#" -gt 0 ]]; do
     case $1 in
         -i|--inspect)