From 0eda0819ed8dd9b885612c4664451de78b299761 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Tue, 11 Oct 2022 15:34:40 +0200 Subject: [PATCH] Switch some wget calls to curl --- linux-tkg-config/prepare | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index ab4b5c2..0cf6929 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -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}"