diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index be62c8855..71631fa25 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -113,8 +113,8 @@ jobs: KIND_VERSION: v0.17.0 KIND_URL: https://kind.sigs.k8s.io/dl run: | - echo $(which kind) - sudo rm $(which kind) + echo "Existing kind binary path: $(which kind)" + if [[ -s $(which kind) ]]; then sudo rm $(which kind); fi wget -O kind "$KIND_URL/$KIND_VERSION/kind-linux-amd64" --progress=dot:giga; chmod +x ./kind sudo mv ./kind /usr/local/bin/kind @@ -221,8 +221,8 @@ jobs: KIND_VERSION: v0.17.0 KIND_URL: https://kind.sigs.k8s.io/dl run: | - echo $(which kind) - sudo rm $(which kind) + echo "Existing kind binary path: $(which kind)" + if [[ -s $(which kind) ]]; then sudo rm $(which kind); fi wget -O kind "$KIND_URL/$KIND_VERSION/kind-linux-amd64" --progress=dot:giga; chmod +x ./kind sudo mv ./kind /usr/local/bin/kind @@ -792,8 +792,8 @@ jobs: KIND_VERSION: v0.17.0 KIND_URL: https://kind.sigs.k8s.io/dl run: | - echo $(which kind) - sudo rm $(which kind) + echo "Existing kind binary path: $(which kind)" + if [[ -s $(which kind) ]]; then sudo rm $(which kind); fi wget -O kind "$KIND_URL/$KIND_VERSION/kind-linux-amd64" --progress=dot:giga; chmod +x ./kind sudo mv ./kind /usr/local/bin/kind @@ -872,8 +872,8 @@ jobs: KIND_VERSION: v0.17.0 KIND_URL: https://kind.sigs.k8s.io/dl run: | - echo $(which kind) - sudo rm $(which kind) + echo "Existing kind binary path: $(which kind)" + if [[ -s $(which kind) ]]; then sudo rm $(which kind); fi wget -O kind "$KIND_URL/$KIND_VERSION/kind-linux-amd64" --progress=dot:giga; chmod +x ./kind sudo mv ./kind /usr/local/bin/kind @@ -942,8 +942,8 @@ jobs: KIND_VERSION: v0.17.0 KIND_URL: https://kind.sigs.k8s.io/dl run: | - echo $(which kind) - sudo rm $(which kind) + echo "Existing kind binary path: $(which kind)" + if [[ -s $(which kind) ]]; then sudo rm $(which kind); fi wget -O kind "$KIND_URL/$KIND_VERSION/kind-linux-amd64" --progress=dot:giga; chmod +x ./kind sudo mv ./kind /usr/local/bin/kind