mirror of
https://github.com/taiki-e/install-action
synced 2026-09-07 20:03:26 +00:00
Accept trailing comma in tool input option
This commit is contained in:
@@ -66,7 +66,7 @@ jobs:
|
||||
if [[ "${list}" == *","* ]]; then
|
||||
# If a comma is contained, consider it is a comma-separated list.
|
||||
# Drop leading and trailing whitespaces in each element.
|
||||
sed -E 's/ *, */,/g; s/^.//' <<<",${list},"
|
||||
sed -E 's/ *, */,/g; s/^.//; s/,,$/,/' <<<",${list},"
|
||||
else
|
||||
# Otherwise, consider it is a whitespace-separated list.
|
||||
# Convert whitespace characters into comma.
|
||||
|
||||
Reference in New Issue
Block a user