Permalink
Browse files

Remove useless braces from tools/log-packets

  • Loading branch information...
ehird committed Sep 29, 2011
1 parent aa9c169 commit 6ef451bbbc78387639cf2d2e40fb10e8daab475e
Showing with 2 additions and 2 deletions.
  1. +2 −2 tools/log-packets
View
@@ -5,7 +5,7 @@ now=$(date +'%Y-%m-%dT%H:%M:%S')
clientlog=${3:-logs/$now.client.log}
serverlog=${4:-logs/$now.server.log}
[ "$(dirname "$clientlog")" = logs ] || [ "$(dirname "$serverlog")" = logs ] && mkdir -p logs
-coproc { tee "${serverlog}"; }
+coproc { tee "$serverlog"; }
exec 3<&${COPROC[0]} 4>&${COPROC[1]}
-nc -l 25565 <&3 | tee "${clientlog}" | nc "$host" "${port}" >&4
+nc -l 25565 <&3 | tee "$clientlog" | nc "$host" "$port" >&4
kill $COPROC_PID

0 comments on commit 6ef451b

Please sign in to comment.