Switch some wget calls to curl

This commit is contained in:
Tk-Glitch
2022-10-11 15:34:40 +02:00
parent c0f559bdf6
commit 0eda0819ed

View File

@@ -637,7 +637,7 @@ _tkg_srcprep() {
fi
wget -O "${_patch_location}/${_patch_name}.patch" "https://raw.githubusercontent.com/graysky2/kernel_compiler_patch/master/${_outdated}${_patch_name}.patch" || true
curl "https://raw.githubusercontent.com/graysky2/kernel_compiler_patch/master/${_outdated}${_patch_name}.patch" > "$srcdir"/"${_patch_name}".patch || true
tkgpatch="${_patch_location}/${_patch_name}.patch"
if [ -e "$tkgpatch" ]; then
_msg="Applying graysky's cpu opts patch" && _tkg_patcher
@@ -653,7 +653,7 @@ _tkg_srcprep() {
if [ "${_preempt_rt_force}" = "1" ] || [ "${preempt_rt_ksubver}" = "${_kver_subver_map[$_basekernel]}" ]; then
preempt_rt_file_gz="patch-${_basekernel}.${preempt_rt_ksubver}-rt${_rt_rev_map["$_basekernel"]}.patch.gz"
preempt_rt_file=`basename ${preempt_rt_file_gz} .gz`
wget -P "$srcdir" "https://cdn.kernel.org/pub/linux/kernel/projects/rt/${_basekernel}/${preempt_rt_file_gz}"
curl "https://cdn.kernel.org/pub/linux/kernel/projects/rt/${_basekernel}/${preempt_rt_file_gz}" > "$srcdir"/"${preempt_rt_file_gz}"
last_pwd=`pwd`
cd "$srcdir"
gunzip -k "$srcdir/${preempt_rt_file_gz}"