Skip to content

Commit a0993ec

Browse files
authored
local-cbo: allow changing CBO_PATH (#1299)
1 parent 7df2c42 commit a0993ec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

metal3-dev/local-cbo.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ source $SCRIPTDIR/logging.sh
88
source $SCRIPTDIR/common.sh
99
source $SCRIPTDIR/utils.sh
1010

11-
cbo_path=$GOPATH/src/github.com/openshift/cluster-baremetal-operator
12-
if [ ! -d $cbo_path ]; then
13-
echo "Did not find $cbo_path" 1>&2
11+
CBO_PATH=${CBO_PATH:-$GOPATH/src/github.com/openshift/cluster-baremetal-operator}
12+
if [ ! -d $CBO_PATH ]; then
13+
echo "Did not find $CBO_PATH" 1>&2
1414
exit 1
1515
fi
1616

@@ -26,7 +26,7 @@ oc get secret -n openshift-machine-api cluster-baremetal-operator-tls -o json \
2626
| base64 -d > /etc/cluster-baremetal-operator/tls/tls.key
2727

2828
# Run the operator
29-
cd $cbo_path
29+
cd $CBO_PATH
3030

3131
export IMAGES_JSON=${SCRIPTDIR}/${OCP_DIR}/cbo-images.json
3232
export RUN_NAMESPACE=openshift-machine-api

0 commit comments

Comments
 (0)