Replace instances of --output-dir from curl commands (#529)

This commit is contained in:
Daedalusspacegames
2022-05-30 10:43:30 -07:00
committed by GitHub
parent 00844fd6a5
commit 60cd85c006

View File

@@ -615,20 +615,20 @@ _tkg_srcprep() {
_msg="Applying TT patch" _msg="Applying TT patch"
if [ "${_distro}" = "Void" ]; then if [ "${_distro}" = "Void" ]; then
if [[ $_basever = 515 ]]; then if [[ $_basever = 515 ]]; then
curl --output-dir "$wrksrc" -o "tt.patch" "https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_basekernel}/TT/0001-tt-r3.patch" curl "https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_basekernel}/TT/0001-tt-r3.patch" > "$wrksrc"/tt.patch
elif [[ $_basever = 517 ]]; then elif [[ $_basever = 517 ]]; then
curl --output-dir "$wrksrc" -o "tt.patch" "https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_basekernel}/sched/0001-tt.patch" curl "https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_basekernel}/sched/0001-tt.patch" > "$wrksrc"/tt.patch
else else
curl --output-dir "$wrksrc" -o "tt.patch" "https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_basekernel}/sched/0001-tt-${_basekernel}.patch" curl "https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_basekernel}/sched/0001-tt-${_basekernel}.patch" > "$wrksrc"/tt.patch
fi fi
tkgpatch="$wrksrc/tt.patch" && _tkg_patcher tkgpatch="$wrksrc/tt.patch" && _tkg_patcher
else else
if [[ $_basever = 515 ]]; then if [[ $_basever = 515 ]]; then
curl --output-dir "$srcdir" -o "tt.patch" "https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_basekernel}/TT/0001-tt-r3.patch" curl "https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_basekernel}/TT/0001-tt-r3.patch" > "$srcdir"/tt.patch
elif [[ $_basever = 517 ]]; then elif [[ $_basever = 517 ]]; then
curl --output-dir "$srcdir" -o "tt.patch" "https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_basekernel}/sched/0001-tt.patch" curl "https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_basekernel}/sched/0001-tt.patch" > "$srcdir"/tt.patch
else else
curl --output-dir "$srcdir" -o "tt.patch" "https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_basekernel}/sched/0001-tt-${_basekernel}.patch" curl "https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_basekernel}/sched/0001-tt-${_basekernel}.patch" > "$srcdir"/tt.patch
fi fi
tkgpatch="$srcdir/tt.patch" && _tkg_patcher tkgpatch="$srcdir/tt.patch" && _tkg_patcher
fi fi