Add taplo (#944)

This commit is contained in:
Vivien Maisonneuve
2025-04-21 20:54:48 +02:00
committed by GitHub
parent 78164bc822
commit b75a7ff44c
4 changed files with 166 additions and 0 deletions

18
main.sh
View File

@@ -97,6 +97,17 @@ download_and_extract() {
esac
fi
;;
*.gz)
if ! type -P gzip >/dev/null; then
case "${base_distro}" in
debian | fedora | suse | arch | alpine)
printf '::group::Install packages required for installation (gzip)\n'
sys_install gzip
printf '::endgroup::\n'
;;
esac
fi
;;
*.tar.bz2 | *.tbz2)
tar_args+=('xjf')
if ! type -P bzip2 >/dev/null; then
@@ -163,6 +174,13 @@ download_and_extract() {
esac
done
;;
*.gz)
mv -- tmp "${bin_in_archive#\./}.gz"
gzip -d "${bin_in_archive#\./}.gz"
for tmp in "${bin_in_archive[@]}"; do
mv -- "${tmp}" "${bin_dir}/"
done
;;
*)
for tmp in "${installed_bin[@]}"; do
mv -- tmp "${tmp}"