Skip to content

Commit b1810ae

Browse files
committed
almost reverted fix for commit msg with spaces
# test multiple parameters surrounded by double quotes # this is to test if the entrypoint.sh script can handle double quotes, # because GitHub Actions will pass arguments as a single string. docker run --rm \ -v ./dummy:/app/dummy \ -w /app \ -e GITHUB_TOKEN \ -e DEBUG \ github-graphql-client:latest "commit -o pirafrank -r "test-repo" -b main -c dummy/file1.txt -m 'this is a commit msg'"
1 parent b4c1e39 commit b1810ae

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

entrypoint.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,4 @@ if [[ "$DEBUG" == "true" ]]; then
1414
echo $@
1515
fi
1616

17-
argv=(node /app/github.js "$@")
18-
cmd=$(printf '%q ' "${argv[@]}")
19-
eval $cmd
17+
eval "node /app/github.js $@"

0 commit comments

Comments
 (0)