From b43413525fea4fd38a80fc9b6f3687ed6ac759b3 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 23 Mar 2015 13:11:54 +0100 Subject: [PATCH] guests/freebsd: fix call of set -i : missing extension Sed on freebsd seems to be mores strict than on other platforms about use of -i: the extension is not optional. Signed-off-by: Michael Adam --- plugins/guests/freebsd/cap/remove_public_key.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/guests/freebsd/cap/remove_public_key.rb b/plugins/guests/freebsd/cap/remove_public_key.rb index 13abc864b..8d5526ca4 100644 --- a/plugins/guests/freebsd/cap/remove_public_key.rb +++ b/plugins/guests/freebsd/cap/remove_public_key.rb @@ -11,7 +11,7 @@ module VagrantPlugins machine.communicate.tap do |comm| if comm.test("test -f ~/.ssh/authorized_keys") comm.execute( - "sed -i '/^.*#{contents}.*$/d' ~/.ssh/authorized_keys") + "sed -i .bak '/^.*#{contents}.*$/d' ~/.ssh/authorized_keys") end end end