mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-21 15:10:27 +00:00
Add taplo (#944)
This commit is contained in:
committed by
GitHub
parent
78164bc822
commit
b75a7ff44c
18
main.sh
18
main.sh
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user