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

wiener pushed a commit to branch dev
in repository 
https://gitbox.apache.org/repos/asf/incubator-streampipes-installer.git


The following commit(s) were added to refs/heads/dev by this push:
     new da9b086  [hotfix] remove check if environment is running
da9b086 is described below

commit da9b086cc3f6d065a67c03da71d4e76a116ab5ef
Author: Patrick Wiener <[email protected]>
AuthorDate: Mon Nov 2 11:46:02 2020 +0100

    [hotfix] remove check if environment is running
---
 cli/bin/commands/ps | 21 +++++++++------------
 1 file changed, 9 insertions(+), 12 deletions(-)

diff --git a/cli/bin/commands/ps b/cli/bin/commands/ps
index 4a70e80..377443b 100755
--- a/cli/bin/commands/ps
+++ b/cli/bin/commands/ps
@@ -45,18 +45,15 @@ while [[ "$#" -gt 0 ]]; do
     esac
 done
 
-if is_streampipes_running; then
-  project_name=$(sed -n 's/^COMPOSE_PROJECT_NAME=//p' 
$STREAMPIPES_WORKDIR/.env)
-  if [ "$list_stopped_containers" = true ]; then
-    docker ps \
-        --filter "name=${project_name}_*" \
-        --format 'table {{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}' \
-        --all
-  else
-    docker ps \
+project_name=$(sed -n 's/^COMPOSE_PROJECT_NAME=//p' $STREAMPIPES_WORKDIR/.env)
+
+if [ "$list_stopped_containers" = true ]; then
+  docker ps \
       --filter "name=${project_name}_*" \
-      --format 'table {{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}'
-  fi
+      --format 'table {{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}' \
+      --all
 else
-  info "No StreamPipes environment running"
+  docker ps \
+    --filter "name=${project_name}_*" \
+    --format 'table {{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}'
 fi

Reply via email to