Skip to content

Commit e60a7b0

Browse files
authored
Update appid.js
1 parent 5772ed5 commit e60a7b0

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

appid.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ if (process.argv.length != 3) {
1111
}
1212

1313
var l = await fs.readdir(process.argv[2], { recursive: true })
14-
l = l.filter(v => v.endsWith('Info.plist'))
14+
l = l.filter(v => v.endsWith('/Info.plist'))
1515
var l1= []
1616
for(var i=0;i<l.length;i++){
17-
l1.push((await $`defaults read '${process.argv[2]}/${l[i]}' CFBundleIdentifier`.text()).trim())
17+
try{
18+
l1.push((await $`defaults read '${process.argv[2]}/${l[i]}' CFBundleIdentifier`.text()).trim())
19+
}catch(e){
20+
console.error(e)
21+
}
1822
}
1923
console.log([...new Set(l1)].join('\n'))

0 commit comments

Comments
 (0)