Merge pull request #5517 from obnoxxx/fix-freebsd-ssh-remove-key

guests/freebsd: fix call of set -i : missing extension
This commit is contained in:
Seth Vargo 2015-05-31 20:31:04 -07:00
commit dc713cbd66
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ module VagrantPlugins
machine.communicate.tap do |comm| machine.communicate.tap do |comm|
if comm.test("test -f ~/.ssh/authorized_keys") if comm.test("test -f ~/.ssh/authorized_keys")
comm.execute( comm.execute(
"sed -i '/^.*#{contents}.*$/d' ~/.ssh/authorized_keys") "sed -i .bak '/^.*#{contents}.*$/d' ~/.ssh/authorized_keys")
end end
end end
end end