You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2014/03/03 12:59:22 UTC

[jira] [Updated] (KARAF-2623) Karaf client script only returns a non zero status if there is exception

     [ https://issues.apache.org/jira/browse/KARAF-2623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré updated KARAF-2623:
----------------------------------------

    Fix Version/s: 2.3.5
                   3.1.0
                   3.0.1
                   2.4.0

> 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é
>            Priority: Minor
>             Fix For: 2.4.0, 3.0.1, 3.1.0, 2.3.5
>
>
> 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 would be useful to return a non zero return for other errors as well.  
> For example if the following command is run a non zero return code is returned:
> {code}
> [jsherman@oxygen bin]$ ./client -u admin -p admin1 features:install wrapper
> Authentication failure
> [jsherman@oxygen bin]$ echo $?
> 1
> {code}
> However, the following command also had a failure but the client script returns 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' available
> [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.2#6252)