Permalink
Browse files

[fix] Alias init=>install

  • Loading branch information...
1 parent e4793c1 commit d44913b0ea0cf48f768d81ca7a091b68c204d045 @Marak Marak committed Nov 1, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/jitsu.js
View
@@ -156,6 +156,14 @@ jitsu.exec = function (command, callback) {
return callback(err);
}
+ //
+ // Remark: This is a temporary fix for aliasing init=>install,
+ // was having a few issues with the alias command on the install resource
+ //
+ if(command[0] === 'init'){
+ command[0] = 'install';
+ }
+
winston.info('Executing command ' + command.join(' ').magenta);
jitsu.commands.run(command, function (err, shallow) {
if (err) {

0 comments on commit d44913b

Please sign in to comment.