From 22d9b0eeb2ed522ed0eb39f0ba8247829885e9dd Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 20 Apr 2014 08:36:52 -0700 Subject: [PATCH] guests/linux: unmount uses rmdir instead of rm -rf to avoid catastrophe --- plugins/guests/linux/cap/mount_virtualbox_shared_folder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/guests/linux/cap/mount_virtualbox_shared_folder.rb b/plugins/guests/linux/cap/mount_virtualbox_shared_folder.rb index f2882d82d..dccfac54e 100644 --- a/plugins/guests/linux/cap/mount_virtualbox_shared_folder.rb +++ b/plugins/guests/linux/cap/mount_virtualbox_shared_folder.rb @@ -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