try to run rsync in a new shell

This commit is contained in:
Jonas 2024-12-12 04:14:23 +01:00
parent 21973975f4
commit eb0a4fb7b8
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk

View file

@ -12,6 +12,6 @@ chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H ${INPUT_REMOTE_HOST} >> ~/.ssh/known_hosts
# SCP files to the remote host
rsync ${INPUT_RSYNC_PARAMETERS} ${INPUT_PATH} ${INPUT_REMOTE_USER}@${INPUT_REMOTE_HOST}:${INPUT_REMOTE_PATH}
sh -c rsync ${INPUT_RSYNC_PARAMETERS} ${INPUT_PATH} ${INPUT_REMOTE_USER}@${INPUT_REMOTE_HOST}:${INPUT_REMOTE_PATH}
exit 0