Skip to content

Commit

Permalink
fix: update code
Browse files Browse the repository at this point in the history
Signed-off-by: Junjie Gao <[email protected]>
  • Loading branch information
JeyJeyGao committed Mar 9, 2023
1 parent daa60eb commit d118e62
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ The notation-azure-kv plugin provides the capability to signing the Notation gen
The plugin supports Azure CLI identity and Managed Identity for accessing AKV.

## Installation
install the latest released Notation CLI and Azure-kv plugin via the command-line with curl
Install the latest released Notation CLI and Azure-kv plugin via the command-line with curl
```sh
# input
# install Notation & Azure-kv plugin
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Azure/notation-azure-kv/main/tools/install.sh)" -- notation azure-kv

# example output
Expand Down
9 changes: 6 additions & 3 deletions tools/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ set -e

osType="$(uname -s)"
case "${osType}" in
Linux*) ;;
Darwin*) ;;
Linux*)
pluginInstallPath="~/.config/notation/plugins/azure-kv"
;;
Darwin*)
pluginInstallPath="~/Library/Application Support/notation/plugins/azure-kv"
;;
*)
echo "unsupported OS ${osType}"
exit 1
Expand Down Expand Up @@ -104,7 +108,6 @@ fi
# install notation-akv-plugin
if [ $installAzureKV = true ]; then
pluginName=notation-azure-kv
pluginInstallPath=~/.config/notation/plugins/azure-kv
echo "Collecting $pluginName latest release..."
pluginTar=$(downloadLatestBinary Azure $pluginName)
install $pluginTar $pluginName $pluginInstallPath
Expand Down
Binary file not shown.

0 comments on commit d118e62

Please sign in to comment.