diff --git a/lib/vagrant/action/general/package.rb b/lib/vagrant/action/general/package.rb index 53f68bc8a..e49d8a439 100644 --- a/lib/vagrant/action/general/package.rb +++ b/lib/vagrant/action/general/package.rb @@ -40,9 +40,9 @@ module Vagrant # Don't delete the tar_path if the error is that the output already # exists, since this will nuke the user's previous file. if !env["vagrant.error"].is_a?(Errors::PackageOutputExists) - # Cleanup any packaged files if the packaging failed at some point. - File.delete(tar_path) if File.exist?(tar_path) - end + # Cleanup any packaged files if the packaging failed at some point. + File.delete(tar_path) if File.exist?(tar_path) + end end # This method copies the include files (passed in via command line)