mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2026-09-21 17:12:48 +00:00
fix: replace exec with sh -c for rsync command execution in entrypoint script
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ LOCAL_PATH="$GITHUB_WORKSPACE/$INPUT_PATH"
|
|||||||
DSN="$INPUT_REMOTE_USER@$INPUT_REMOTE_HOST"
|
DSN="$INPUT_REMOTE_USER@$INPUT_REMOTE_HOST"
|
||||||
|
|
||||||
# Deploy.
|
# 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.
|
# Clean up.
|
||||||
source agent-stop "$GITHUB_ACTION"
|
source agent-stop "$GITHUB_ACTION"
|
||||||
|
|||||||
Reference in New Issue
Block a user