We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dbf07d commit edb86bcCopy full SHA for edb86bc
hack/lib/start.sh
@@ -522,15 +522,11 @@ function os::start::internal::openshift_executable() {
522
523
openshift_executable="${sudo} docker run ${docker_options} ${volumes} ${envvars} openshift/origin:${version}"
524
else
525
- local envvars=""
526
- if [[ -n "${ENV:-}" ]]; then
527
- envvars="env "
528
- for envvar in "${ENV[@]}"; do
529
- envvars+="${envvar} "
530
- done
531
- fi
532
-
533
- openshift_executable="${sudo} ${envvars} $(which openshift)"
+ if [[ -n "${sudo}" ]]; then
+ openshift_executable="${sudo} -E $(which openshift)"
+ else
+ openshift_executable="$(which openshift)"
+ fi
534
fi
535
536
echo "${openshift_executable}"
0 commit comments