diff --git a/.azure-pipelines/cask-release.yml b/.azure-pipelines/cask-release.yml index 1a82ff00e3d..c0862df9b53 100644 --- a/.azure-pipelines/cask-release.yml +++ b/.azure-pipelines/cask-release.yml @@ -4,7 +4,7 @@ trigger: - master paths: include: - - tools/custodian-cask/* + - tools/cask/* variables: - group: CustodianCoreCI diff --git a/tools/cask/readme.md b/tools/cask/readme.md index 8b3d523daf7..b4278f933bb 100644 --- a/tools/cask/readme.md +++ b/tools/cask/readme.md @@ -17,10 +17,10 @@ Linux sudo sh -c 'wget -q https://cloudcustodian.io/downloads/custodian-cask/linux-latest/custodian-cask -P /usr/local/bin && chmod +x /usr/local/bin/custodian-cask' ``` -Darwin +MacOS (Darwin) ```shell -sudo sh -c 'wget -q https://cloudcustodian.io/downloads/custodian-cask/darwin-latest/custodian-cask -P /usr/local/bin && chmod +x /usr/local/bin/custodian-cask' +sudo sh -c '(cd /usr/local/bin && curl -fsSLO https://cloudcustodian.io/downloads/custodian-cask/darwin-latest/custodian-cask && chmod +x /usr/local/bin/custodian-cask)' ``` Windows (cmd.exe) diff --git a/tools/cask/scripts/install.ps1 b/tools/cask/scripts/install.ps1 index c196426b02d..a9c58d6ad65 100644 --- a/tools/cask/scripts/install.ps1 +++ b/tools/cask/scripts/install.ps1 @@ -20,6 +20,9 @@ $base = "$env:LOCALAPPDATA\custodian" try { + # Ensure folder + md -Force $base | Out-Null + # Download Invoke-WebRequest -OutFile "$base\custodian-cask.exe" "$url"