windows: 限制find搜索文件,修复把整个驱动文件夹复制进boot.wim的问题

This commit is contained in:
bin456789 2023-07-06 21:49:31 +08:00
parent ce261d780f
commit 297f834936
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -487,9 +487,10 @@ EOF
[ -n "$path" ] && filter="-ipath $path" || filter="" [ -n "$path" ] && filter="-ipath $path" || filter=""
find $src \ find $src \
$filter \ $filter \
-type f \
-not -iname "*.pdb" \ -not -iname "*.pdb" \
-not -iname "dpinst.exe" \ -not -iname "dpinst.exe" \
-exec /bin/cp -rf {} $dist \; -exec /bin/cp -rfv {} $dist \;
} }
# 添加驱动 # 添加驱动