From 9a228f1a7cc9544ebd2d3f85bd080f3ccd4f3b9b Mon Sep 17 00:00:00 2001 From: jadilet Date: Tue, 22 Jan 2019 12:00:44 +0600 Subject: [PATCH] added hide stdout and stderr --- lib/vagrant-subutai/packer/subutai_net.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant-subutai/packer/subutai_net.rb b/lib/vagrant-subutai/packer/subutai_net.rb index 05a4ec6..ac6f0cc 100644 --- a/lib/vagrant-subutai/packer/subutai_net.rb +++ b/lib/vagrant-subutai/packer/subutai_net.rb @@ -54,9 +54,9 @@ def broadcast_addr end def broadcast_ping(count) - system("ping -n #{count} #{broadcast_addr} >/dev/null") \ + system("ping -n #{count} #{broadcast_addr} &>/dev/null") \ if (RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/) - system("ping -c #{count} #{broadcast_addr} >/dev/null") \ + system("ping -c #{count} #{broadcast_addr} &>/dev/null") \ if (RbConfig::CONFIG['host_os'] =~ /darwin|linux/) end