dcd: use bin
This commit is contained in:
parent
8b8f432745
commit
602e9f3224
1 changed files with 2 additions and 2 deletions
|
@ -31,12 +31,12 @@ class Dcd < Formula
|
|||
# spawn a server, using a non-default port to avoid
|
||||
# clashes with pre-existing dcd-server instances
|
||||
server = fork do
|
||||
exec "dcd-server", "-p9167"
|
||||
exec "#{bin}/dcd-server", "-p9167"
|
||||
end
|
||||
# Give it generous time to load
|
||||
sleep 0.5
|
||||
# query the server from a client
|
||||
system "dcd-client", "-q", "-p9167"
|
||||
system "#{bin}/dcd-client", "-q", "-p9167"
|
||||
ensure
|
||||
Process.kill "TERM", server
|
||||
Process.wait server
|
||||
|
|
Loading…
Reference in a new issue