debt - use platform over node.js OS

This commit is contained in:
Benjamin Pasero
2020-06-22 09:04:56 +02:00
parent 58912ddc1f
commit 7f132c907b
4 changed files with 6 additions and 7 deletions

View File

@@ -43,7 +43,7 @@ export async function main(argv: string[]): Promise<any> {
// Help
if (args.help) {
const executable = `${product.applicationName}${os.platform() === 'win32' ? '.exe' : ''}`;
const executable = `${product.applicationName}${isWindows ? '.exe' : ''}`;
console.log(buildHelpMessage(product.nameLong, executable, product.version, OPTIONS));
}