Skip to content

Commit 23d9fa2

Browse files
🔧 Update entrypoint.sh to allow multiline arg commands
1 parent a4fab1e commit 23d9fa2

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

entrypoint.sh

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,7 @@ echo "----------------------"
4242
export KUBECONFIG=/opt/kubernetes/config
4343

4444
echo "--- Executing Helm Commands ---"
45-
46-
# Check if arguments are provided
47-
if [ $# -eq 0 ]; then
48-
echo "No commands provided. Exiting."
49-
exit 0
50-
fi
51-
52-
# Always execute with bash to handle complex command strings
53-
echo "Executing commands with bash..."
54-
exec bash -c "$*"
45+
# Execute the commands passed as arguments to the action (e.g., Helm commands)
46+
# The "$@" expands to all positional parameters passed to the script,
47+
# which corresponds to the `args` input in your `action.yml`.
48+
exec "$@"

0 commit comments

Comments
 (0)