Skip to content

Commit

Permalink
Avoid whitespace issues in args with sh -c
Browse files Browse the repository at this point in the history
  • Loading branch information
jakejarvis committed Sep 17, 2019
1 parent 852d7b1 commit 2fb81a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ LABEL "com.github.actions.description"="Sync a directory to an AWS S3 repository
LABEL "com.github.actions.icon"="refresh-cw"
LABEL "com.github.actions.color"="green"

LABEL version="0.3.0"
LABEL version="0.3.1"
LABEL repository="https://github.com/jakejarvis/s3-sync-action"
LABEL homepage="https://jarv.is/"
LABEL maintainer="Jake Jarvis <jake@jarv.is>"
Expand Down
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ EOF

# Use our dedicated profile and suppress verbose messages.
# All other flags are optional via `args:` directive.
aws s3 sync ${SOURCE_DIR} s3://${AWS_S3_BUCKET} \
--profile s3-sync-action \
--no-progress $*
sh -c "aws s3 sync ${SOURCE_DIR} s3://${AWS_S3_BUCKET} \
--profile s3-sync-action \
--no-progress $*"

0 comments on commit 2fb81a9

Please sign in to comment.