Quoted argoments in sftp heredoc

This commit is contained in:
Alvise Bruniera 2025-05-29 11:42:15 +02:00
parent 55f5131ee5
commit adf66cb8c1

View File

@ -118,10 +118,10 @@ sftp_deploy() {
for _sftp_host in $_sftp_hosts ; do
sftp "$_sftp_host"\
<<EOF
put $_ckey $_ckey_path
put $_ccert $_ccert_path
put $_cca $_cca_path
put $_cfullchain $_cfullchain_path
put "$_ckey" "$_ckey_path"
put "$_ccert" "$_ccert_path"
put "$_cca" "$_cca_path"
put "$_cfullchain" "$_cfullchain_path"
EOF
_sftp_error="$?"