You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ob...@apache.org on 2021/11/25 16:54:59 UTC

[incubator-streampipes-installer] branch obermeier-patch-1 created (now 00eb78a)

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

obermeier pushed a change to branch obermeier-patch-1
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes-installer.git.


      at 00eb78a  [STREAMPIPES-477] CLI logs service optional

This branch includes the following new commits:

     new 00eb78a  [STREAMPIPES-477] CLI logs service optional

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[incubator-streampipes-installer] 01/01: [STREAMPIPES-477] CLI logs service optional

Posted by ob...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 00eb78aadbafba688ccae9e2bcb83d0c1e58a858
Author: Stefan Obermeier <gi...@stefan-obermeier.de>
AuthorDate: Thu Nov 25 17:54:53 2021 +0100

    [STREAMPIPES-477] CLI logs service optional
---
 cli/bin/commands/logs | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/cli/bin/commands/logs b/cli/bin/commands/logs
index 39b378c..b317e66 100755
--- a/cli/bin/commands/logs
+++ b/cli/bin/commands/logs
@@ -40,12 +40,11 @@ while [[ "$#" -gt 0 ]]; do
     case $1 in
         -f|--follow)
           if [ -n "$2" ] && [ ${2:0:1} != "-" ]; then
-            follow=true
             svc=$2
-            shift 2
-          else
-            fatal "Argument for $1 is missing" >&2
+            shift 1
           fi
+          follow=true
+          shift 1
           ;;
         -*|--*=) fatal "Unsupported flag $1, see 'streampipes ${0##*/} --help'" >&2 ;;
         *)