Add editorconfig-checker (#430)

This commit is contained in:
John Vandenberg
2024-04-01 08:01:27 +08:00
committed by GitHub
parent ee185407dc
commit ee2b189d46
4 changed files with 97 additions and 3 deletions

View File

@@ -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