Skip to content

Commit

Permalink
added hide stdout and stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
jadilet committed Jan 22, 2019
1 parent e7cfb08 commit 9a228f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vagrant-subutai/packer/subutai_net.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9a228f1

Please sign in to comment.