Skip to content

Commit

Permalink
fixed root stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
gtg092x committed May 15, 2014
1 parent 8873823 commit c56b2b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ var schema = function(cb){
if(cache)
return cb(null,cache);

exec("wp cli info"+flagIfRoot+" --format=json",function(err,stdout,stderr){
exec("wp cli info"+flagIfRoot()+" --format=json",function(err,stdout,stderr){
var info = JSON.parse(stdout);

exec("wp cli cmd-dump"+flagIfRoot+"",function(err,stdout,stderr){
exec("wp cli cmd-dump"+flagIfRoot()+"",function(err,stdout,stderr){

var data = JSON.parse(stdout);
//fs.writeFile(__dirname+"/../cache/dump.json",JSON.stringify(data,false,4),console.log);
Expand Down

0 comments on commit c56b2b2

Please sign in to comment.