We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f7f8ea9 + e0c63d5 commit 9a0e15cCopy full SHA for 9a0e15c
deploy/vault.sh
@@ -70,10 +70,10 @@ vault_deploy() {
70
71
# JSON does not allow multiline strings.
72
# So replacing new-lines with "\n" here
73
- _ckey=$(sed -z 's/\n/\\n/g' <"$2")
74
- _ccert=$(sed -z 's/\n/\\n/g' <"$3")
75
- _cca=$(sed -z 's/\n/\\n/g' <"$4")
76
- _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")
77
78
export _H1="X-Vault-Token: $VAULT_TOKEN"
79
0 commit comments