-
Bug
-
Resolution: Done
-
Major
-
fuse-7.1
-
None
When trying to install Fuse Online 7.1. on my cluster I have noticed an error during checking of the version of oc client and server and the execution of install_ocp.sh was interrupted
Line 247 of install_ocp.sh from https://raw.githubusercontent.com/syndesisio/fuse-online-install/1.4/install_ocp.sh contains the following code
local test=$(oc version | grep oc | tr -d oc\ v | cut -f1 -d "+")
Now my cluster is named ocplabs.com which unfortunately contains also "oc" and is returned in the response of "oc version". What we really want is the first line of the response of "oc version".
I have fixed it like this (quick and dirty):
local test=$(oc version | head -1 | grep oc | tr -d oc\ v | cut -f1 -d "+")