Yea, passing “yes” at the end will add ziti to your path for that session. Like most ideas, it was one which I was toying around with.
Later versions changed the function. It’d now be:
source <(wget -qO- https://raw.githubusercontent.com/openziti/ziti/release-next/quickstart/docker/image/ziti-cli-functions.sh); getZiti yes
It’s just not ‘fully featured’. If you run it twice, I think it concatenates the path twice right now etc so … I stopped using it in the doc for the timebeing until we make it more robust (if we ever do that).
I would just recommend when running getZiti you update your ~/.bashrc or ~/.zshrc or whatever and update your path manually. That way you can control it.
But - yes it does ‘work’:
cd@172.24.128.79:sg3: ~$ source <(wget -qO- https://raw.githubusercontent.com/openziti/ziti/release-next/quickstart/docker/image/ziti-cli-functions.sh); getZiti yes
using default ZITI_HOME: /home/cd/.ziti/quickstart/
ZITI_BINARIES_VERSION: v0.25.4
Already Downloaded ziti-linux-amd64-0.25.4.tar.gz at: /home/cd/.ziti/quickstart//ziti-bin/ziti-linux-amd64-0.25.4.tar.gz
UNZIPPING /home/cd/.ziti/quickstart//ziti-bin/ziti-linux-amd64-0.25.4.tar.gz into: /home/cd/.ziti/quickstart//ziti-bin/ziti-v0.25.4
Marking executables at /home/cd/.ziti/quickstart//ziti-bin/ziti-v0.25.4 executable
Adding /home/cd/.ziti/quickstart//ziti-bin/ziti-v0.25.4 to the path if necessary:
adding /home/cd/.ziti/quickstart//ziti-bin/ziti-v0.25.4 to the path
cd@172.24.128.79:sg3: ~$ which ziti
/home/cd/.ziti/quickstart//ziti-bin/ziti-v0.25.4/ziti