mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-23 07:40:40 +00:00
Add editorconfig-checker (#430)
This commit is contained in:
9
main.sh
9
main.sh
@@ -68,7 +68,9 @@ download_and_extract() {
|
||||
local tmp
|
||||
case "${tool}" in
|
||||
# xbuild's binary name is "x", as opposed to the usual crate name
|
||||
xbuild) installed_bin=("${bin_dir}/x") ;;
|
||||
xbuild) installed_bin=("${bin_dir}/x${exe}") ;;
|
||||
# editorconfig-checker's binary name is renamed below
|
||||
editorconfig-checker) installed_bin=("${bin_dir}/${tool}${exe}") ;;
|
||||
*)
|
||||
for tmp in "${bin_in_archive[@]}"; do
|
||||
installed_bin+=("${bin_dir}/$(basename "${tmp}")")
|
||||
@@ -129,7 +131,10 @@ download_and_extract() {
|
||||
tar_args+=("tmp")
|
||||
tar "${tar_args[@]}"
|
||||
for tmp in "${bin_in_archive[@]}"; do
|
||||
mv "${tmp}" "${bin_dir}/"
|
||||
case "${tool}" in
|
||||
editorconfig-checker) mv "${tmp}" "${bin_dir}/${tool}${exe}" ;;
|
||||
*) mv "${tmp}" "${bin_dir}/" ;;
|
||||
esac
|
||||
done
|
||||
else
|
||||
case "${url}" in
|
||||
|
||||
Reference in New Issue
Block a user