Merge pull request #256 from izzatzr/InstallScriptFix

use version command in install script (thanks @izzatzr)
This commit is contained in:
Thorsten Klein 2020-05-29 13:01:28 +02:00 committed by GitHub
commit 0c5ca44349
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ verifySupported() {
# if it needs to be changed. # if it needs to be changed.
checkK3dInstalledVersion() { checkK3dInstalledVersion() {
if [[ -f "${K3D_INSTALL_DIR}/${APP_NAME}" ]]; then if [[ -f "${K3D_INSTALL_DIR}/${APP_NAME}" ]]; then
local version=$(k3d --version | cut -d " " -f3) local version=$(k3d version | cut -d " " -f3)
if [[ "$version" == "$TAG" ]]; then if [[ "$version" == "$TAG" ]]; then
echo "k3d ${version} is already ${DESIRED_VERSION:-latest}" echo "k3d ${version} is already ${DESIRED_VERSION:-latest}"
return 0 return 0