Merge pull request #3167 from xraj/bugfix/linux-nfs-exports-regex

hosts/linux: Fix Linux NFS exports pruning due to bad `sed` expression
This commit is contained in:
Mitchell Hashimoto 2014-03-12 18:36:58 -07:00
commit ec0234349a
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ module VagrantPlugins
# Use sed to just strip out the block of code which was inserted
# by Vagrant
system("sudo sed -r -e '/^# VAGRANT-BEGIN:( #{user})? #{id}/,/^# VAGRANT-END:( #{user})? #{id}/ d' -ibak /etc/exports")
system("sudo sed -r -e '\\\x01^# VAGRANT-BEGIN:( #{user})? #{id}\x01,\\\x01^# VAGRANT-END:( #{user})? #{id}\x01 d' -ibak /etc/exports")
end
def self.nfs_opts_setup(folders)