codegen: Reflect editorconfig-checker 3.1.0 Windows asset_name change

This commit is contained in:
Taiki Endo
2025-01-10 00:04:25 +09:00
parent a4d120e1c4
commit f82e1be4c6
3 changed files with 145 additions and 40 deletions

View File

@@ -159,7 +159,10 @@ download_and_extract() {
*.zip)
unzip -q tmp "${bin_in_archive#\./}"
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
;;
*)