Skip to content

Commit 8fc53c8

Browse files
committed
improve example to set path to local oc binary
The example in the CONTRIBUTING doc adds the locally built oc binary dir at the end of the PATH. If the user already has oc in the path then this command won't override it. This just changes the example to add the local build to the beginning of the PATH
1 parent 43a6c81 commit 8fc53c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CONTRIBUTING.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ $ hack/env make release
137137
In order to make use of the binaries from your shell, add the build output
138138
directory to the `$PATH`:
139139
----
140-
$ export PATH="${PATH}:$( source hack/lib/init.sh; echo "${OS_OUTPUT_BINPATH}/$( os::build::host_platform )/" )"
140+
$ export PATH="$( source hack/lib/init.sh; echo "${OS_OUTPUT_BINPATH}/$( os::build::host_platform )/" ):${PATH}"
141141
----
142142

143143
See more information in https://github.com/openshift/origin/blob/master/HACKING.md#building-on-non-linux-systems[`HACKING.md`]

0 commit comments

Comments
 (0)