We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91d1295 commit a4fab1eCopy full SHA for a4fab1e
entrypoint.sh
@@ -42,7 +42,13 @@ echo "----------------------"
42
export KUBECONFIG=/opt/kubernetes/config
43
44
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 "$@"
+
+# Check if arguments are provided
+if [ $# -eq 0 ]; then
+ 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