Skip to content

Commit a4fab1e

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

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

entrypoint.sh

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

4444
echo "--- Executing Helm Commands ---"
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 "$@"
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 "$*"

0 commit comments

Comments
 (0)