1010 * @param {String } command to execute on the shell
1111 */
1212var ShellAction , childprocess , events ,
13- __hasProp = { } . hasOwnProperty ,
14- __extends = function ( child , parent ) { for ( var key in parent ) { if ( __hasProp . call ( parent , key ) ) child [ key ] = parent [ key ] ; } function ctor ( ) { this . constructor = child ; } ctor . prototype = parent . prototype ; child . prototype = new ctor ( ) ; child . __super__ = parent . prototype ; return child ; } ;
13+ extend = function ( child , parent ) { for ( var key in parent ) { if ( hasProp . call ( parent , key ) ) child [ key ] = parent [ key ] ; } function ctor ( ) { this . constructor = child ; } ctor . prototype = parent . prototype ; child . prototype = new ctor ( ) ; child . __super__ = parent . prototype ; return child ; } ,
14+ hasProp = { } . hasOwnProperty ;
1515
1616events = require ( 'events' ) ;
1717
1818childprocess = require ( "child_process" ) ;
1919
20- ShellAction = ( function ( _super ) {
21- __extends ( ShellAction , _super ) ;
20+ ShellAction = ( function ( superClass ) {
21+ extend ( ShellAction , superClass ) ;
2222
2323 function ShellAction ( ) {
2424 return ShellAction . __super__ . constructor . apply ( this , arguments ) ;
@@ -27,7 +27,7 @@ ShellAction = (function(_super) {
2727 ShellAction . prototype . command = function ( command , callback ) {
2828 var windows ;
2929 windows = / ^ w i n / . test ( process . platform ) ;
30- childprocess . exec ( "" + command + " 2>&1" , null , ( function ( _this ) {
30+ childprocess . exec ( command + " 2>&1" , null , ( function ( _this ) {
3131 return function ( err , stdout , stderr ) {
3232 console . log ( "Done " + command + ":\n" + stdout ) ;
3333 if ( typeof callback === "function" ) {
0 commit comments