Permalink
Browse files

formatting

  • Loading branch information...
contra committed Sep 14, 2011
1 parent 9cfd8b8 commit 82b7ee77876d985a64343b45d22405529cb473a1
Showing with 9 additions and 13 deletions.
  1. +9 −13 scripts/removeapp.js
View
@@ -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.