mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-21 15:10:27 +00:00
ci: Remove dead code
This commit is contained in:
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@@ -62,19 +62,6 @@ jobs:
|
|||||||
printf '::error::%s\n' "$*"
|
printf '::error::%s\n' "$*"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
normalize_comma_or_space_separated() {
|
|
||||||
# Normalize whitespace characters into space because it's hard to handle single input contains lines with POSIX sed alone.
|
|
||||||
local list="${1//[$'\r\n\t']/ }"
|
|
||||||
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/^.//; s/,,$/,/' <<<",${list},"
|
|
||||||
else
|
|
||||||
# Otherwise, consider it is a whitespace-separated list.
|
|
||||||
# Convert whitespace characters into comma.
|
|
||||||
sed -E 's/ +/,/g; s/^.//' <<<" ${list} "
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
if { sed --help 2>&1 || true; } | grep -Eq -e '-i extension'; then
|
if { sed --help 2>&1 || true; } | grep -Eq -e '-i extension'; then
|
||||||
in_place=(-i '')
|
in_place=(-i '')
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user