-
Bug
-
Resolution: Done
-
Major
-
jboss-fuse-6.0
-
None
-
None
-
%
When running the client script it only returns a non zero return code if exception occurs, however if there is warning it returns 0.
This can be problem when trying to automate some commands and the status code needs to be verified to confirm is the command was successful.
For example running the the following command behaves as expected:
[jsherman@oxygen bin]$ ./client -u admin -p admin1 features:install wrapper Authentication failure [jsherman@oxygen bin]$ echo $? 1
However, if an invalid command is passed to the client to execute the script returns zero even though the command failed:
[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]$
- is related to
-
ENTESB-1855 bin/client not working properly after installing 6.1 p2
- Closed
-
ENTESB-1535 Patching process doesn't update scripts stored in bin directory
- Closed