mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-06-03 22:05:01 -04:00
guests/linux: unmount uses rmdir instead of rm -rf to avoid catastrophe
This commit is contained in:
parent
2e8f837f9b
commit
22d9b0eeb2
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue