Skip to content

Commit

Permalink
优化代理支持,用 curl 代替 wget 命令。
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Dec 7, 2023
1 parent e026958 commit d99de2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rebuild
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ download_kernel() {
echo -e "${INFO} (${x}.${i}) [ ${k} - ${kernel_var} ] Kernel download from [ ${kernel_down_from} ]"

mkdir -p ${kernel_path}/${kd}
wget "${kernel_down_from}" -q -P "${kernel_path}/${kd}"
curl -sL "${kernel_down_from}" -o "${kernel_path}/${kd}/${kernel_var}.tar.gz"
[[ "${?}" -ne "0" ]] && error_msg "Failed to download the kernel files from the server."

tar -mxzf "${kernel_path}/${kd}/${kernel_var}.tar.gz" -C "${kernel_path}/${kd}"
Expand Down

0 comments on commit d99de2d

Please sign in to comment.