X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=_webi%2Ftest.js;h=9c801334096756f0fbea401f7ce2607ba7670396;hb=72406c4e0d438b76da054be8d5eff42d08312498;hp=d45b87fb0eb4acfd126835a29f84ddac720496cb;hpb=681cccd4d5f2adb81470ee99ede927a6de896c3b;p=webi-installers%2F.git 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(''); }); });