From 72c2a83e4f9d7785d227b4f385aef82d82bb42f8 Mon Sep 17 00:00:00 2001 From: Matheus Pimenta Date: Mon, 29 Jun 2026 10:04:56 +0100 Subject: [PATCH] Simplify and sanitize plugin line parsing Signed-off-by: Matheus Pimenta --- action/action.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/action/action.yml b/action/action.yml index c9ce9acd..f62b7712 100644 --- a/action/action.yml +++ b/action/action.yml @@ -212,10 +212,9 @@ runs: env: PLUGINS: ${{ inputs.plugins }} run: | - # Read line by line echo "$PLUGINS" | while read -r PLUGIN; do - # if $PLUGIN contains some string value and is not empty - if [[ -n $PLUGIN ]] || [[ $PLUGIN ]]; then + trimmed="${PLUGIN//[[:space:]]/}" + if [[ -n "$trimmed" ]]; then echo Installing: "$PLUGIN" flux plugin install "$PLUGIN" fi