You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
right now the helper script ziti-cli-functions.sh provides a getZiti function. If you invoke that function twice from bash the script does not properly detect that the lastest ziti binary has been downloaded:
$ getZiti
using default ZITI_HOME: /home/cd/.ziti/quickstart/
ZITI_BINARIES_VERSION: v0.27.9
Downloading https://github.com/openziti/ziti/releases/download/v0.27.9/ziti-linux-amd64-0.27.9.tar.gz to /home/cd/.ziti/quickstart//ziti-bin/ziti-linux-amd64-0.27.9.tar.gz
UNZIPPING /home/cd/.ziti/quickstart//ziti-bin/ziti-linux-amd64-0.27.9.tar.gz into: /home/cd/.ziti/quickstart//ziti-bin/ziti-v0.27.9
Marking executables at /home/cd/.ziti/quickstart//ziti-bin/ziti-v0.27.9 executable
cd@172.20.166.120:sg3u22: /mnt/v/temp/zssh
$ getZiti yes
ZITI_BINARIES_VERSION: v0.27.9
Using ZITI_BIN_DIR: /home/cd/.ziti/quickstart//ziti-bin/ziti-v0.27.9
Downloading https://github.com/openziti/ziti/releases/download/v0.27.9/ziti-linux-amd64-0.27.9.tar.gz to /home/cd/.ziti/quickstart//ziti-bin/ziti-bin/ziti-linux-amd64-0.27.9.tar.gz
UNZIPPING /home/cd/.ziti/quickstart//ziti-bin/ziti-bin/ziti-linux-amd64-0.27.9.tar.gz into: /home/cd/.ziti/quickstart//ziti-bin/ziti-v0.27.9
mv: cannot overwrite non-directory '/home/cd/.ziti/quickstart//ziti-bin/ziti-v0.27.9/ziti' with directory '/home/cd/.ziti/quickstart//ziti-bin/ziti-bin/ziti'
getZiti should:
place the binaries into the same known location each time it's run
notice when $ZITI_HOME or $ZITI_NETWORK is unset (notice the path downloaded: /quickstart//ziti-bin/ and the extra slash in the path
not download the binary if it already exists at the target location
The text was updated successfully, but these errors were encountered:
right now the helper script
ziti-cli-functions.sh
provides agetZiti
function. If you invoke that function twice from bash the script does not properly detect that the lastest ziti binary has been downloaded:getZiti should:
/quickstart//ziti-bin/
and the extra slash in the pathThe text was updated successfully, but these errors were encountered: