Skip to content

Commit

Permalink
Merge pull request #5159 from themarek/dev
Browse files Browse the repository at this point in the history
improve compatibility with FreeBSD
  • Loading branch information
Neilpang authored Jun 17, 2024
2 parents f7f8ea9 + e0c63d5 commit 9a0e15c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deploy/vault.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ vault_deploy() {

# JSON does not allow multiline strings.
# So replacing new-lines with "\n" here
_ckey=$(sed -z 's/\n/\\n/g' <"$2")
_ccert=$(sed -z 's/\n/\\n/g' <"$3")
_cca=$(sed -z 's/\n/\\n/g' <"$4")
_cfullchain=$(sed -z 's/\n/\\n/g' <"$5")
_ckey=$(sed -e ':a' -e N -e '$ ! ba' -e 's/\n/\\n/g' <"$2")
_ccert=$(sed -e ':a' -e N -e '$ ! ba' -e 's/\n/\\n/g' <"$3")
_cca=$(sed -e ':a' -e N -e '$ ! ba' -e 's/\n/\\n/g' <"$4")
_cfullchain=$(sed -e ':a' -e N -e '$ ! ba' -e 's/\n/\\n/g' <"$5")

export _H1="X-Vault-Token: $VAULT_TOKEN"

Expand Down

0 comments on commit 9a0e15c

Please sign in to comment.