Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Contra committed Sep 14, 2011
1 parent 9cfd8b8 commit 82b7ee7
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions scripts/removeapp.js
Expand Up @@ -6,20 +6,16 @@ var app_dir = process.argv[2];
var app_dir_rw = app_dir + '_rw';
var git_dir = process.argv[3];

var cmds = [
'rm -Rf ' + app_dir,
'rm -Rf ' + app_dir_rw,
'rm -Rf ' + git_dir
];
var cmds = ['rm -Rf ' + app_dir, 'rm -Rf ' + app_dir_rw, 'rm -Rf ' + git_dir];

var do_cmd = function () {
if (cmds.length > 0) {
var cmd = cmds.shift();
console.log(cmd);
exec(cmd, function () {
do_cmd();
});
}
};
if (cmds.length > 0) {
var cmd = cmds.shift();
console.log(cmd);
exec(cmd, function () {
do_cmd();
});
}
};

do_cmd();

0 comments on commit 82b7ee7

Please sign in to comment.