Skip to content
This repository was archived by the owner on Feb 28, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/templates/idt.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function runIDT(args) {
cp.execSync(cmd, {stdio: 'inherit'});
}

// Download the IDT installer script and trigger runIDT().
// Download the IDT installer script and trigger runInstaller().
function downloadInstaller(cb) {
const url = win ?
'https://ibm.biz/yeoman-idt-win-install' :
Expand All @@ -77,13 +77,13 @@ function downloadInstaller(cb) {
.on('finish', () => runInstaller(fileName, cb));
}

// Run the installer script and trigger callback (cb).
// Run the installer script and trigger optional callback (cb).
function runInstaller(fileName, cb) {
const shell = win ? 'powershell.exe' : 'bash';

const filePath = path.resolve(__dirname, fileName);
console.log(`Now running: ${shell} ${filePath}`);

cp.spawnSync(shell, [filePath], {stdio: 'inherit'});
cb();
typeof cb === 'function' && cb();
}