Skip to content

Commit

Permalink
build: Remove old modules before copying new
Browse files Browse the repository at this point in the history
Signed-off-by: Saalim Quadri <[email protected]>
  • Loading branch information
danascape committed Mar 15, 2024
1 parent ce0013d commit 5e34e31
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ do_anykernel()

do_kernel_modules()
{
if [[ -d "out/dist/modules" ]]; then
log_info "sworkflow: Removing old modules"
rm -rf out/dist/modules
fi
mkdir out/dist/modules

modules=()

while IFS= read -r -d $'\0' file; do
Expand Down

0 comments on commit 5e34e31

Please sign in to comment.