From cb2f3a697f66d86fd177622b342294ef6fb087f0 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Fri, 24 Jun 2016 21:18:40 -0400 Subject: [PATCH] guests/debian: Do not check if rsync is installed before installing This is already done via the rsync_installed capability. --- plugins/guests/debian/cap/rsync.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/plugins/guests/debian/cap/rsync.rb b/plugins/guests/debian/cap/rsync.rb index d8371bf86..b503f8cf3 100644 --- a/plugins/guests/debian/cap/rsync.rb +++ b/plugins/guests/debian/cap/rsync.rb @@ -4,12 +4,11 @@ module VagrantPlugins class RSync def self.rsync_install(machine) comm = machine.communicate - if !comm.test("command -v rsync") - comm.sudo <<-EOH.gsub(/^ {14}/, '') - apt-get -yqq update - apt-get -yqq install rsync - EOH - end + comm.sudo <<-EOH.gsub(/^ {14}/, '') + set -e + apt-get -yqq update + apt-get -yqq install rsync + EOH end end end