From: AJ ONeal Date: Sat, 22 Aug 2020 20:47:10 +0000 (+0000) Subject: better test output X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=fb2ab05e33ead4b4db89ef84d6b4501b6a807381;p=webi-installers%2F.git better test output --- diff --git a/_webi/test.js b/_webi/test.js index d45b87f..9c80133 100755 --- a/_webi/test.js +++ b/_webi/test.js @@ -128,11 +128,15 @@ Releases.get(path.join(process.cwd(), pkgdir)).then(function (all) { 'REM todo debug' ); } - console.info('Has the necessary files?'); - fs.writeFileSync(bashFile, bashTxt, 'utf-8'); - console.info('\tNEEDS MANUAL TEST: bash %s', bashFile); - fs.writeFileSync(ps1File, ps1Txt, 'utf-8'); - console.info('\tNEEDS MANUAL TEST: powershell.exe %s', ps1File); + console.info('Do the scripts actually work?'); + if (bashFile && bashTxt) { + fs.writeFileSync(bashFile, bashTxt, 'utf-8'); + console.info('\tNEEDS MANUAL TEST: bash %s', bashFile); + } + if (ps1File && ps1Txt) { + fs.writeFileSync(ps1File, ps1Txt, 'utf-8'); + console.info('\tNEEDS MANUAL TEST: powershell.exe %s', ps1File); + } console.info(''); }); });