@@ -17,7 +17,7 @@ verify_podman_binary() {
17
17
# Add port as 9000:9000 as arg when the SO is MacOS or Win
18
18
add_host_port_arg (){
19
19
args=" --net=host"
20
- if [[ " $OSTYPE " == " darwin" * ]] || [[ " $( < /proc/version ) " == * " @(Microsoft|WSL) " * ]] ; then
20
+ if [[ " $OSTYPE " == " darwin" * ]] || uname -r | grep -q ' Microsoft ' ; then
21
21
args=" -p 9000:9000"
22
22
fi
23
23
}
@@ -34,10 +34,10 @@ run_ocp_console_image (){
34
34
$POD_MANAGER run -dit --rm $args \
35
35
-e BRIDGE_USER_AUTH=" disabled" \
36
36
-e BRIDGE_K8S_MODE=" off-cluster" \
37
- -e BRIDGE_K8S_MODE_OFF_CLUSTER_ENDPOINT=$endpoint \
37
+ -e BRIDGE_K8S_MODE_OFF_CLUSTER_ENDPOINT=" $endpoint " \
38
38
-e BRIDGE_K8S_MODE_OFF_CLUSTER_SKIP_VERIFY_TLS=true \
39
39
-e BRIDGE_K8S_AUTH=" bearer-token" \
40
- -e BRIDGE_K8S_AUTH_BEARER_TOKEN=$( kubectl get secret " $secretname " --namespace=kube-system -o template --template=' {{.data.token}}' | base64 --decode) \
40
+ -e BRIDGE_K8S_AUTH_BEARER_TOKEN=" $( kubectl get secret " $secretname " --namespace=kube-system -o template --template=' {{.data.token}}' | base64 --decode) " \
41
41
quay.io/openshift/origin-console:latest & > /dev/null
42
42
}
43
43
@@ -48,7 +48,7 @@ verify_ocp_console_image (){
48
48
echo -e " ${GREEN} The OLM is accessible via web console at:${RESET} "
49
49
echo -e " ${GREEN} http://localhost:9000/${RESET} "
50
50
echo -e " ${GREEN} Press Ctrl-C to quit${RESET} " ;
51
- $POD_MANAGER attach $container_id
51
+ $POD_MANAGER attach " $container_id "
52
52
else
53
53
echo -e " ${RED} Unable to run the console locally. May this port is in usage already.${RESET} "
54
54
echo -e " ${RED} Check if the OLM is not accessible via web console at: http://localhost:9000/${RESET} "
0 commit comments