fix: replace exec with sh -c for rsync command execution in entrypoint script

This commit is contained in:
Burnett01
2025-12-02 14:52:50 +00:00
parent 7bf29be338
commit 82725684f9
+1 -1
View File
@@ -30,7 +30,7 @@ LOCAL_PATH="$GITHUB_WORKSPACE/$INPUT_PATH"
DSN="$INPUT_REMOTE_USER@$INPUT_REMOTE_HOST"
# Deploy.
exec rsync $INPUT_SWITCHES -e "'$RSH'" "$LOCAL_PATH" "$DSN:$INPUT_REMOTE_PATH"
sh -c "rsync $SWITCHES -e '$RSH' $LOCAL_PATH $DSN:$INPUT_REMOTE_PATH"
# Clean up.
source agent-stop "$GITHUB_ACTION"