redhatdemocentral / ocp-install-demo

OpenShift Container Platform installed in fully automated and repeatable fashion on your laptop. Get started with your containerized development with a private PaaS installed in just minutes.
82 stars 60 forks source link

./init.sh not detecting my oc cli tools #12

Closed xacaxulu closed 7 years ago

xacaxulu commented 7 years ago

Get CLI tools here.


````$ tar -xvf oc-3.3.1.3-1-macosx.tar.gz

Even though running `oc` returns the standard help page, running `./init.sh` consistently returns:

/init.sh:

 line 72: oc: command not found
./init.sh: line 76: [: ==: unary operator expected
Version of installed OpenShift command line tools is ., must be v3.3 or higher...

Download for Linux here: https://s3.amazonaws.com/oso-preview-docker-registry/client-tools/3.3/oc-3.3.0.35-1-linux.tar.gz
Download for Mac here: https://s3.amazonaws.com/oso-preview-docker-registry/client-tools/3.3/oc-3.3.1.3-1-macosx.tar.gz

volpines-MacBook-Pro:ocp-install-demo volpine$ 
xacaxulu commented 7 years ago

NOTE: Replacing all instances of oc whatever command with ./oc whatever command seems to work so I'll handle it locally. Wondering if a try/catch/try something else would work here for other adopters of this tool. Happy to PR if Admins are keen.

sabre1041 commented 7 years ago

@xacaxulu is the oc executable on the $PATH? This is recommended as it allows the execution of OpenShift commands from any directory

xacaxulu commented 7 years ago

@sabre1041 That is 100% reasonable.