Skip to content
Snippets Groups Projects
Commit f88f5889 authored by Seblu's avatar Seblu
Browse files

Improve patching step

parent 39840818
No related branches found
No related tags found
No related merge requests found
......@@ -24,12 +24,15 @@ prepare() {
cd linux
# apply patches
for _f in "${source[@]}"; do
if [[ "$_f" =~ \.patch$ ]]; then
msg2 "Patching $_f"
patch -p1 < "$srcdir/$_f"
fi
# apply patch from the source array (should be a pacman feature)
local src
for src in "${source[@]}"; do
src="${src%%::*}"
src="${src##*/}"
[[ $src = *.patch ]] || continue
msg2 "Applying patch $src..."
patch -Np1 < "../$src"
done
# loading default config
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment