Commit 3a6e8ee440d566dae80722d3fabbca097d32670a

Authored by Will Farrington

Merge pull request #85 from boztek/nuke-delete-receipts

Fix script/nuke to properly delete receipts

Showing 1 changed file Side-by-side Diff

... ... @@ -54,7 +54,8 @@
54 54  
55 55 if all || receipts
56 56 warn "-> Removing /var/db/.puppet_*."
57   - system "rm", "-rf", "/var/db/.puppet_*" if force
  57 + # can't use a bare system call here, because we need globbing.
  58 + system 'sh -c "rm -rf /var/db/.puppet_*"' if force
58 59 end
59 60  
60 61 if all || gitconfig