File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,5 @@ description: |
99display :
1010 source_url : https://github.com/smaeda-ks/orb-hashicorp-vault-cli
1111
12- # If your orb requires other orbs, you can import them like this. Otherwise remove the "orbs" stanza.
13- # orbs:
14- # hello: circleci/[email protected] 12+ orbs :
13+
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ parameters:
99 description : Directory in which to install vault
1010 type : string
1111steps :
12+ - jq/install
1213 - run :
1314 command : |
1415 # Quietly try to make the install directory.
3536 if [ ! "$PARAM_VAULT_VERSION" = "latest" ]; then
3637 export VAULT_VER_STRING="$PARAM_VAULT_VERSION"
3738 else
38- PARAM_VAULT_VERSION=$(basename $( curl -fs -o /dev/null -w %{redirect_url} https://github. com/hashicorp/vault/ releases/latest) | sed 's/v// ')
39+ PARAM_VAULT_VERSION=$(curl -fs https://api.releases.hashicorp. com/v1/ releases/vault/ latest | jq -r '.version ')
3940 export VAULT_VER_STRING="$PARAM_VAULT_VERSION"
4041 fi
4142
You can’t perform that action at this time.
0 commit comments