guests/linux: unmount uses rmdir instead of rm -rf to avoid catastrophe

This commit is contained in:
Mitchell Hashimoto 2014-04-20 08:36:52 -07:00
parent 2e8f837f9b
commit 22d9b0eeb2
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ module VagrantPlugins
result = machine.communicate.sudo(
"umount #{guestpath}", error_check: false)
if result == 0
machine.communicate.sudo("rm -rf #{guestpath}", error_check: false)
machine.communicate.sudo("rmdir #{guestpath}", error_check: false)
end
end
end