From 37644c8196113ab318aeb336e5a058134dba43ea Mon Sep 17 00:00:00 2001 From: Lucas Costi Date: Tue, 13 Dec 2022 12:36:02 +1000 Subject: [PATCH] Fix Docker example errors and make it POSIX compliant (#22635) --- .../dockerfile-support-for-github-actions.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/content/actions/creating-actions/dockerfile-support-for-github-actions.md b/content/actions/creating-actions/dockerfile-support-for-github-actions.md index c989dc4512..911d9d9075 100644 --- a/content/actions/creating-actions/dockerfile-support-for-github-actions.md +++ b/content/actions/creating-actions/dockerfile-support-for-github-actions.md @@ -85,9 +85,8 @@ Using the example Dockerfile above, {% data variables.product.product_name %} wi # `$#` expands to the number of arguments and `$@` expands to the supplied `args` printf '%d args:' "$#" -printf $' \'%s\'' "$@" -printf ' <%s>' "$@" -echo +printf " '%s'" "$@" +printf '\n' ``` Your code must be executable. Make sure the `entrypoint.sh` file has `execute` permissions before using it in a workflow. You can modify the permission from your terminal using this command: