guests/linux: unmount uses rmdir instead of rm -rf to avoid catastrophe
This commit is contained in:
parent
2e8f837f9b
commit
22d9b0eeb2
|
@ -84,7 +84,7 @@ module VagrantPlugins
|
||||||
result = machine.communicate.sudo(
|
result = machine.communicate.sudo(
|
||||||
"umount #{guestpath}", error_check: false)
|
"umount #{guestpath}", error_check: false)
|
||||||
if result == 0
|
if result == 0
|
||||||
machine.communicate.sudo("rm -rf #{guestpath}", error_check: false)
|
machine.communicate.sudo("rmdir #{guestpath}", error_check: false)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue