+ bashTxt = (bashTxt || 'echo ERROR').replace(/#set -x/g, 'set -x');
+ ps1Txt = (ps1Txt || 'echo ERROR').replace(
+ /REM REM todo debug/g,
+ 'REM todo debug'
+ );
+ }
+ 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);