Skip to content

Commit

Permalink
chore: split on os.EOL
Browse files Browse the repository at this point in the history
  • Loading branch information
iowillhoit committed Jan 19, 2024
1 parent 6aa7891 commit cf06ee1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/stampy-signed-upload.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { readdirSync } from 'node:fs';
import { exec } from 'node:child_process';
import os from 'node:os';

const files = readdirSync('.').filter((f) => f.startsWith('sf-v') && f.endsWith('.exe'));

Expand Down Expand Up @@ -28,9 +29,9 @@ files
}
console.log(
stdout
.split('\n')
.split(os.EOL)
.filter((l) => l.includes('upload:'))
.join(' \\\n')
.join(` \\${os.EOL}`)
);
});
});

0 comments on commit cf06ee1

Please sign in to comment.