fix sed issue in windows
This commit is contained in:
parent
30d075380b
commit
6589101deb
|
@ -3,16 +3,6 @@ const constants = require('../lib/constants');
|
|||
|
||||
require('colors');
|
||||
|
||||
// TODO: can this moved somewhere else? (e.g webpackProcess.js)
|
||||
// Override process.chdir so that we have a partial-implementation PWD for Windows
|
||||
const realChdir = process.chdir;
|
||||
process.chdir = (...args) => {
|
||||
if (!process.env.PWD) {
|
||||
process.env.PWD = process.cwd();
|
||||
}
|
||||
realChdir(...args);
|
||||
};
|
||||
|
||||
let version = require('../package.json').version;
|
||||
|
||||
class EmbarkController {
|
||||
|
|
|
@ -30,7 +30,7 @@ class TemplateGenerator {
|
|||
}
|
||||
|
||||
generate(destinationFolder, name) {
|
||||
console.log(__('Initializing Embark Template....').green);
|
||||
console.log(__('Initializing Embark Template...').green);
|
||||
|
||||
let templatePath = fs.embarkPath(utils.joinPath('templates', this.templateName));
|
||||
let fspath = utils.joinPath(destinationFolder, name);
|
||||
|
|
|
@ -467,9 +467,9 @@ module.exports = {
|
|||
pingEndpoint,
|
||||
decodeParams,
|
||||
runCmd,
|
||||
cd: cd,
|
||||
sed: sed,
|
||||
exit: exit,
|
||||
cd,
|
||||
sed,
|
||||
exit,
|
||||
downloadFile,
|
||||
extractTar,
|
||||
extractZip,
|
||||
|
|
Loading…
Reference in New Issue