diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-09-14 08:48:16 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-09-14 08:48:16 +0100 |
| commit | 2fc37b4b47cc55d86f611d96c6798912441b0eae (patch) | |
| tree | 4e6892b80123774be3e1bb4ad985b809429548bf /include/mk | |
| parent | 4ebede5b99270f0770a989392fd935b13010e695 (diff) | |
use -mindepth alongside -maxdepth in find
use of maxdepth 1 does not exclude the main
directory, which is undesired in these contexts,
though excluded in practise due to how find is
actually used.
technically, mindepth should be used, just in
case, as a defensive measure. the context here
is files and directories within a main directory,
used as arguments in other commands.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/mk')
| -rw-r--r-- | include/mk/release.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mk/release.sh b/include/mk/release.sh index f0dc4864..e713ae64 100644 --- a/include/mk/release.sh +++ b/include/mk/release.sh @@ -109,7 +109,8 @@ prep_release_bin() x_ ./mk -b stm32-vserprog x_ ./mk -b pcsx-redux - fx_ mkrom_tarball x_ find bin -maxdepth 1 -type d -name "serprog_*" + fx_ mkrom_tarball x_ find bin -mindepth 1 -maxdepth 1 \ + -type d -name "serprog_*" x_ mv bin ../roms } |
