DepotGroup - groupExists
DepotGroup - groupExists
Description :
This command determines whether a depot group exists. You must provide the full path (for example, /Packages/Software/Solaris) to the depot group.
This command returns true if the group exists; otherwise it returns false.
Return type : Boolean
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
qualifiedGroupName | String | Fully qualified path to the depot group. |
Example
You might want to test that a group exists before taking an action such as adding a package to the group, as shown in the following example:
Script
DEPOT_GROUP1="/parent/group1"
if [`blcli DepotGroup groupExists $DEPOT_GROUP1` == "true"]; then
# add package to group1
fi
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*