Skip to content

Commit

Permalink
Drop -OutFile from Invoke-WebRequest in favor of bash-mode redirection.
Browse files Browse the repository at this point in the history
  • Loading branch information
kwlzn committed Sep 7, 2024
1 parent baba4f4 commit 0c7f601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function fetch() {
dest="${dest_dir}/$(basename "${url}")"

if [[ "${OS}" == "windows" ]]; then
pwsh -c "Invoke-WebRequest -OutFile ${dest} -Uri ${url}"
pwsh -c "Invoke-WebRequest -Uri ${url}" > "${dest}"
else
curl --proto '=https' --tlsv1.2 -SfL --progress-bar -o "${dest}" "${url}"
fi
Expand Down

0 comments on commit 0c7f601

Please sign in to comment.