Skip to content

Commit

Permalink
just avoiding permission denies on fuser
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy Wonka committed Jul 30, 2010
1 parent 9e9d773 commit f32eb44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glass_stone.rb
Expand Up @@ -173,7 +173,7 @@ def fuser_hyper_ports(extra_flags = "")
end

def fuser_hyper_port(port, extra_flags = "")
sh "echo #{name}; fuser #{extra_flags} -n tcp #{port}" do |ok, status|
sh "echo #{name}; fuser #{extra_flags} -n tcp #{port} 2>/dev/null" do |ok, status|
if !ok
puts "Could not find a hyper on port #{port}"
end
Expand Down

0 comments on commit f32eb44

Please sign in to comment.