script/nuke failed to delete receipts

Can't use a bare system call because we need globbing
This commit is contained in:
Boris Gordon 2013-03-01 14:13:33 +11:00
parent 06d4ab1375
commit f6572da4e8

View file

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