Skip to content

Commit

Permalink
replaced &> /dev/null with 2>&1 > /dev/null
Browse files Browse the repository at this point in the history
  • Loading branch information
Powerhamster committed May 14, 2018
1 parent 9387ba3 commit d17a77e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/docker-sync/dependencies/docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def self.available?

def self.running?
return @running if defined? @running
@running = system('docker ps &> /dev/null')
@running = system('docker ps 2>&1 > /dev/null')
end

def self.ensure!
Expand Down
2 changes: 1 addition & 1 deletion lib/docker-sync/dependencies/unox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class << self

def self.available?
return @available if defined? @available
cmd = 'brew list unox &> /dev/null'
cmd = 'brew list unox 2>&1 > /dev/null'
@available = defined?(Bundler) ? Bundler.clean_system(cmd) : system(cmd)
end

Expand Down
2 changes: 1 addition & 1 deletion spec/integration/native-osx_strategy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

before :all do
# Cleanup potentially leftover container from previously killed test suite
system('docker rm -f -v docker_sync_specs-sync &> /dev/null')
system('docker rm -f -v docker_sync_specs-sync 2>&1 > /dev/null')
end

describe 'start' do
Expand Down

0 comments on commit d17a77e

Please sign in to comment.