com karma: Dont add an additional newline to the input: hooks/post-receive
| From: | David Soria Parra | Date: | Sat, 24 Mar 2012 11:15:15 +0000 |
| Subject: | com karma: Dont add an additional newline to the input: hooks/post-receive | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-68172@lists.php.net to get a copy of this message | ||
Commit: fd251cb983a0be8628d4e435aed2775cf37c5f71
Author: David Soria Parra <dsp@php.net> Sat, 24 Mar 2012 12:15:15 +0100
Parents: 8e826dd710ddcbc2464f5e978f1f2a4105a66d7d
Branches: master
Link: http://git.php.net/?p=karma.git;a=commitdiff;h=fd251cb983a0be8628d4e435aed2775cf37c5f71
Log:
Dont add an additional newline to the input
Changed paths:
M hooks/post-receive
Diff:
fd251cb983a0be8628d4e435aed2775cf37c5f71
diff --git a/hooks/post-receive b/hooks/post-receive
index 2045e42..748e80e 100755
--- a/hooks/post-receive
+++ b/hooks/post-receive
@@ -1,5 +1,5 @@
#!/bin/sh
in=$(cat)
-[ -f 'hooks/post-receive.mail' ] && (echo "$in" |
hooks/post-receive.mail )
-[ -f 'hooks/post-receive.bugsweb' ] && (echo "$in" |
hooks/post-receive..bugsweb )
+[ -f 'hooks/post-receive.mail' ] && (echo -n "$in" |
hooks/post-receive.mail )
+[ -f 'hooks/post-receive.bugsweb' ] && (echo -n "$in" |
hooks/post-receive.bugsweb )
[ -f 'hooks/post-receive.mirror' ] && hooks/post-receive.mirror