We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8629c68 commit 3071cd0Copy full SHA for 3071cd0
scripts/download_chromium.js
@@ -42,9 +42,12 @@ browserFetcher
42
// follow symlinks, dereference symlinks and copy them as files
43
child_process.execSync(`cp -LR ${execPath} ${outputPath}`);
44
45
- const dsStorePath = `${outputPath}/${parts[parts.length - 1]}/.DS_Store`;
46
- if (!fs.existsSync(dsStorePath)) {
47
- child_process.execSync(`touch ${dsStorePath}`)
+ const dsStore = '.DS_Store'
+ const dsStorePaths = [`${outputPath}/${dsStore}`, `${outputPath}/${parts[parts.length - 1]}/.DS_Store`]
+ for (const path of dsStorePaths) {
48
+ if (!fs.existsSync(path)) {
49
+ child_process.execSync(`touch ${path}`)
50
+ }
51
}
52
} else {
53
// follow symlinks, copy them as symlinks
0 commit comments