installScript: grep for line containing 'k3d version' when checking for version due to multiline output

pull/244/head^2
iwilltry42 4 years ago
parent 637c48e63c
commit a3375abf23
No known key found for this signature in database
GPG Key ID: 7BA57AD1CFF16110
  1. 2
      install.sh

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

Loading…
Cancel
Save