From 864340ec58bf6b0950fa826ea3669c4f51bb1e92 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Thu, 29 Jun 2017 16:11:18 -0700 Subject: [PATCH] Invoke tee from specific path This commit updates the use of `tee` to use an explicit path when invoked rather than relying on where `tee` has been defined in a users PATH. --- plugins/hosts/bsd/cap/nfs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hosts/bsd/cap/nfs.rb b/plugins/hosts/bsd/cap/nfs.rb index 5d31c3cc1..713479eae 100644 --- a/plugins/hosts/bsd/cap/nfs.rb +++ b/plugins/hosts/bsd/cap/nfs.rb @@ -111,7 +111,7 @@ module VagrantPlugins line = Vagrant::Util::ShellQuote.escape(line, "'") system( "echo '#{line}' | " + - "#{sudo_command}tee -a /etc/exports >/dev/null") + "#{sudo_command}/usr/bin/tee -a /etc/exports >/dev/null") end # We run restart here instead of "update" just in case nfsd