From fb2ab05e33ead4b4db89ef84d6b4501b6a807381 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 22 Aug 2020 20:47:10 +0000 Subject: [PATCH] better test output --- _webi/test.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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(''); }); }); -- 2.25.1