Skip to content

feat(perf): optimize find commands in image customization script#413

Merged
igorpecovnik merged 2 commits intoarmbian:mainfrom
DealsBeam:main
Dec 23, 2025
Merged

feat(perf): optimize find commands in image customization script#413
igorpecovnik merged 2 commits intoarmbian:mainfrom
DealsBeam:main

Conversation

@DealsBeam
Copy link
Copy Markdown
Contributor

No description provided.

google-labs-jules bot and others added 2 commits December 23, 2025 21:14
Combines three separate `find` commands in the `customize-image.sh` script into a single, more efficient command.

Previously, the script spawned three processes and traversed the `/etc/apt/sources.list.d/` directory three times to delete files matching different patterns. This change consolidates the logic into a single `find` command using the `-o` (OR) operator.

This optimization reduces the number of forked processes from three to one and ensures the directory is traversed only once, leading to a small but meaningful performance improvement and cleaner code.
…04378999262

Optimize find commands in customize-image.sh
@github-actions github-actions bot added the Action scripts GitHub Action scripts label Dec 23, 2025
@igorpecovnik igorpecovnik merged commit 64e56c2 into armbian:main Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Action scripts GitHub Action scripts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants