From issues-return-27134-apmail-karaf-issues-archive=karaf.apache.org@karaf.apache.org Fri Nov 27 09:21:11 2015 Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7728518FE8 for ; Fri, 27 Nov 2015 09:21:11 +0000 (UTC) Received: (qmail 76365 invoked by uid 500); 27 Nov 2015 09:21:11 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 76326 invoked by uid 500); 27 Nov 2015 09:21:11 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 76247 invoked by uid 99); 27 Nov 2015 09:21:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Nov 2015 09:21:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 1C7F52C1F5C for ; Fri, 27 Nov 2015 09:21:11 +0000 (UTC) Date: Fri, 27 Nov 2015 09:21:11 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-2623) Karaf client script only returns a non zero status if there is exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-2623?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1502= 9658#comment-15029658 ]=20 ASF GitHub Bot commented on KARAF-2623: --------------------------------------- Github user asfgit closed the pull request at: https://github.com/apache/karaf/pull/31 > Karaf client script only returns a non zero status if there is exception > ------------------------------------------------------------------------ > > Key: KARAF-2623 > URL: https://issues.apache.org/jira/browse/KARAF-2623 > Project: Karaf > Issue Type: Improvement > Affects Versions: 2.3.0 > Reporter: Jason Sherman > Assignee: Jean-Baptiste Onofr=C3=A9 > Priority: Minor > Fix For: 2.4.0, 3.0.1, 2.3.5, 4.0.0.M3 > > > When connecting to karaf using the client script and executing commands a= non zero return code is only returned if an exception occurs, however it w= ould be useful to return a non zero return for other errors as well. =20 > For example if the following command is run a non zero return code is ret= urned: > {code} > [jsherman@oxygen bin]$ ./client -u admin -p admin1 features:install wrapp= er > Authentication failure > [jsherman@oxygen bin]$ echo $? > 1 > {code} > However, the following command also had a failure but the client script r= eturns zero indicating it was successful: > {code} > [jsherman@oxygen bin]$ ./client -u admin -p admin features:install wraper > Error executing command: No feature named 'wraper' with version '0.0.0' a= vailable > [jsherman@oxygen bin]$ echo $? > 0 > [jsherman@oxygen bin]$ > {code} > It would be nice to know that command resulted in an error. -- This message was sent by Atlassian JIRA (v6.3.4#6332)