uniinstaller returns code 1 with the parameter -help
search cancel

uniinstaller returns code 1 with the parameter -help

book

Article ID: 228738

calendar_today

Updated On:

Products

CA Automic Dollar Universe

Issue/Introduction

In Unix/Linux, the command uniinstaller returns an exit code 1 when launched with the argument -help, this makes difficult to make a difference when command fails because a wrong parameter was used.

Excerpt of the uniinstaller script involved: 

282 if [ $# -eq 0 ] || [ $1 = "-help" ] || [ $1 = "-h" ]; then
283    print_DUAS_CLI_usage
284    exit 1
285 fi

Environment

Release : 6.x

Component : DOLLAR UNIVERSE

Script: uniinstaller

OS: Unix/Linux

Resolution

Indeed, uniinstaller in Windows returns code 0 when no parameter is passed to the command or if parameter -help is used.

In Linux, the script returns an error code 1 instead.

If this causes problems in your automated installation / check scripts, please modify the line 284 of the Linux script accordingly from 

exit 1

to

exit 0

Additional Information

Broadcom will review the uniformity of the return code for the parameter help in the future.