From a6aa16dcad5d61ccdc20851ec4c0677b4d37a212 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 1 Sep 2013 11:58:52 -0700 Subject: [PATCH] hosts/bsd: proper NFS prune sed syntax --- plugins/hosts/bsd/host.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hosts/bsd/host.rb b/plugins/hosts/bsd/host.rb index d9f6860ca..51bbf58ef 100644 --- a/plugins/hosts/bsd/host.rb +++ b/plugins/hosts/bsd/host.rb @@ -148,7 +148,7 @@ module VagrantPlugins # Use sed to just strip out the block of code which was inserted # by Vagrant, and restart NFS. - system("sudo sed -e '/^# VAGRANT-BEGIN:\\( #{user}\\)\\? #{id}/,/^# VAGRANT-END:\\( #{user}\\)\\? #{id}/ d' -ibak /etc/exports") + system("sudo sed -E -e '/^# VAGRANT-BEGIN:( #{user})? #{id}/,/^# VAGRANT-END:( #{user})? #{id}/ d' -ibak /etc/exports") end end end