mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-26 00:50:48 +00:00
Remove ... from log
This commit is contained in:
8
main.sh
8
main.sh
@@ -43,7 +43,7 @@ download() {
|
|||||||
mkdir -p .install-action-tmp
|
mkdir -p .install-action-tmp
|
||||||
(
|
(
|
||||||
cd .install-action-tmp
|
cd .install-action-tmp
|
||||||
info "downloading ${url}..."
|
info "downloading ${url}"
|
||||||
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "$url" -o tmp.zip
|
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "$url" -o tmp.zip
|
||||||
unzip tmp.zip
|
unzip tmp.zip
|
||||||
mv "${bin}" "${bin_dir}/"
|
mv "${bin}" "${bin_dir}/"
|
||||||
@@ -59,7 +59,7 @@ download() {
|
|||||||
if [[ "${components}" != "0" ]]; then
|
if [[ "${components}" != "0" ]]; then
|
||||||
tar_args+=(--strip-components "${components}")
|
tar_args+=(--strip-components "${components}")
|
||||||
fi
|
fi
|
||||||
info "downloading ${url}..."
|
info "downloading ${url}"
|
||||||
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "${url}" \
|
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "${url}" \
|
||||||
| tar "${tar_args[@]}" -C "${bin_dir}" "${bin}"
|
| tar "${tar_args[@]}" -C "${bin_dir}" "${bin}"
|
||||||
}
|
}
|
||||||
@@ -200,7 +200,7 @@ for tool in "${tools[@]}"; do
|
|||||||
cygwin* | msys*) url="https://get.nexte.st/${version}/windows-tar" ;;
|
cygwin* | msys*) url="https://get.nexte.st/${version}/windows-tar" ;;
|
||||||
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
||||||
esac
|
esac
|
||||||
info "downloading ${url}..."
|
info "downloading ${url}"
|
||||||
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "${url}" \
|
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "${url}" \
|
||||||
| tar xzf - -C "${cargo_bin}"
|
| tar xzf - -C "${cargo_bin}"
|
||||||
;;
|
;;
|
||||||
@@ -247,7 +247,7 @@ for tool in "${tools[@]}"; do
|
|||||||
latest) version="${latest_version}" ;;
|
latest) version="${latest_version}" ;;
|
||||||
esac
|
esac
|
||||||
url="https://github.com/${repo}/releases/download/v${version}/shfmt_v${version}_${target}${exe}"
|
url="https://github.com/${repo}/releases/download/v${version}/shfmt_v${version}_${target}${exe}"
|
||||||
info "downloading ${url}..."
|
info "downloading ${url}"
|
||||||
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused -o /usr/local/bin/shfmt "${url}"
|
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused -o /usr/local/bin/shfmt "${url}"
|
||||||
chmod +x /usr/local/bin/shfmt
|
chmod +x /usr/local/bin/shfmt
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user