Skip to content

Commit 5cc52ce

Browse files
committed
sync writing hook
1 parent 0bed06c commit 5cc52ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/ionic/cordova.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ IonicTask.prototype.addHooks = function() {
270270
// copy the hook script to the project
271271
try {
272272
var cliScript = path.join(cliHookPath, hookFilename);
273-
fs.createReadStream( cliScript ).pipe(fs.createWriteStream( projectScript ));
273+
fs.writeFileSync(projectScript, fs.readFileSync(cliScript));
274274
} catch(e) {
275275
console.log( ('addCliHookDirectory fs.createReadStream: ' + e).error );
276276
return;

0 commit comments

Comments
 (0)