fix windows links, lang self references
This commit is contained in:
parent
7716e4fd85
commit
d7bc0ae017
11 changed files with 20 additions and 19 deletions
|
|
@ -12,7 +12,7 @@ async function main() {
|
|||
.map(line => line.trim())
|
||||
.map(line => line.split(',').map(v => v.trim()));
|
||||
|
||||
if (os.platform() === 'win32')
|
||||
if (os.platform() === 'win32') {
|
||||
// convert links to the contents of the files/directories they reference
|
||||
for (let [link, target] of links) {
|
||||
const absoluteTarget = path.resolve(path.dirname(link), target);
|
||||
|
|
@ -24,6 +24,9 @@ async function main() {
|
|||
console.error(`Error creating symlink: ${link} -> ${absoluteTarget}`, err);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
console.log('skipping symlink conversion');
|
||||
}
|
||||
}
|
||||
|
||||
main().catch(err => console.error('Error', err));
|
||||
|
|
|
|||
Loading…
Reference in a new issue