Permalink
Browse files

Fix problem where "tusk install --force" took longer and longer due t…

…o the notes not being reset.
  • Loading branch information...
1 parent 8f459a7 commit ff030258bdfb56e857bdfa4af974c3b423fce947 Tom Robinson committed Mar 5, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/narwhal/tusk/commands/install.js
View
2 lib/narwhal/tusk/commands/install.js
@@ -189,6 +189,8 @@ exports.install = function (options, names) {
if (targetPath.exists()) {
if (options.force) {
targetPath.rmtree();
+ // TODO: better way to handle notes?
+ notes[name].files = [];
} else {
print("Error: Directory exists: "+targetPath);
return;

0 comments on commit ff03025

Please sign in to comment.