build_image*.sh: Copy with /. (directory-contents idiom) instead of /* (glob)

so that hidden files are included and the copy succeeds even on an edge-case empty dir.
This commit is contained in:
Mingyang Li
2026-06-06 21:03:39 -07:00
parent e28927cf02
commit 07fdf6c0d8
2 changed files with 2 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ sudo mkdir -p ${WORK}/p1/App/boot4u
sudo cp ${REPO}/boot4u/AppMain.bin ${WORK}/p1/App/boot4u/
sudo touch ${WORK}/p1/App/boot4u/index.din
sudo cp -ra ${REPO}/brainux/* ${WORK}/p2/
sudo cp -a "${REPO}/brainux/." "${WORK}/p2/"
sudo umount ${WORK}/p1 ${WORK}/p2
sudo kpartx -d ${IMG}