config-tools: fix board import bug

Only import board with special suffix: .board.xml

Tracked-On: #7571
Signed-off-by: Conghui <conghui.chen@intel.com>
This commit is contained in:
Conghui 2022-05-25 10:46:52 +08:00 committed by acrnsi-robot
parent f1f9dcfb9c
commit f3d4dbfb8d
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ export default {
.then((res) => {
let boardPath = ''
res.map((filepath) => {
if (filepath.path.search('board') != -1) {
if (filepath.path.search('\\.board\\.xml') != -1) {
boardPath = filepath.path
}
})