[Git][root/services/dns][main] fix: missing \n

Fernando K pushed to branch main at Root / Serviços / DNS Commits: f3ff3e95 by Fernando Monteiro Kiotheka at 2025-08-06T15:32:32-03:00 fix: missing \n - - - - - 1 changed file: - get-key-from-bao.sh Changes: ===================================== get-key-from-bao.sh ===================================== @@ -3,10 +3,9 @@ response=$(curl --no-progress-meter --request POST \ --header "X-Vault-Token: $VAULT_TOKEN" --data '{"key_type": "ed25519"}' \ "$VAULT_ADDR/v1/ssh-client-signer/issue/ansible") \ || { echo "Failed to retrieve SSH key: Request to Vault failed"; exit 1; } -echo $response private_key=$(printf "%s" "$response" | jq --raw-output .data.private_key) signed_key=$(printf "%s" "$response" | jq --raw-output .data.signed_key) [ "$signed_key" != "null" ] && [ "$private_key" != "null" ] \ || { echo "Failed to retrieve SSH key: SSH key is empty"; exit 1; } -printf "%s" "$private_key" >key && chmod 600 key -printf "%s" "$signed_key" >key-cert.pub && chmod 644 key-cert.pub +printf "%s\n" "$private_key" >key && chmod 600 key +printf "%s\n" "$signed_key" >key-cert.pub && chmod 644 key-cert.pub View it on GitLab: https://gitlab.c3sl.ufpr.br/root/services/dns/-/commit/f3ff3e957d43842982500... -- View it on GitLab: https://gitlab.c3sl.ufpr.br/root/services/dns/-/commit/f3ff3e957d43842982500... You're receiving this email because of your account on gitlab.c3sl.ufpr.br.
participantes (1)
-
Fernando K (@fmkiotheka)