We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7df2c42 commit a0993ecCopy full SHA for a0993ec
metal3-dev/local-cbo.sh
@@ -8,9 +8,9 @@ source $SCRIPTDIR/logging.sh
8
source $SCRIPTDIR/common.sh
9
source $SCRIPTDIR/utils.sh
10
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
+CBO_PATH=${CBO_PATH:-$GOPATH/src/github.com/openshift/cluster-baremetal-operator}
+if [ ! -d $CBO_PATH ]; then
+ echo "Did not find $CBO_PATH" 1>&2
14
exit 1
15
fi
16
@@ -26,7 +26,7 @@ oc get secret -n openshift-machine-api cluster-baremetal-operator-tls -o json \
26
| base64 -d > /etc/cluster-baremetal-operator/tls/tls.key
27
28
# Run the operator
29
-cd $cbo_path
+cd $CBO_PATH
30
31
export IMAGES_JSON=${SCRIPTDIR}/${OCP_DIR}/cbo-images.json
32
export RUN_NAMESPACE=openshift-machine-api
0 commit comments