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:
parent
f1f9dcfb9c
commit
f3d4dbfb8d
|
@ -157,7 +157,7 @@ export default {
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
let boardPath = ''
|
let boardPath = ''
|
||||||
res.map((filepath) => {
|
res.map((filepath) => {
|
||||||
if (filepath.path.search('board') != -1) {
|
if (filepath.path.search('\\.board\\.xml') != -1) {
|
||||||
boardPath = filepath.path
|
boardPath = filepath.path
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue