From 0d48a8624696b590c8b1ad81610e62a43022592f Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sat, 15 Feb 2014 18:58:53 -0800 Subject: [PATCH] update.sh: use configured nc_openbsd_bin Since a7a78dc4 the nc.openbsd executable has been configurable, but since POSIX shells do not in general support defining functions containing a ".", the function used to invoke it is nc_openbsd instead of nc_openbsd. Correct update.sh to use nc_openbsd instead of nc.openbsd so that it uses the configured nc.openbsd executable. --- jobd/update.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jobd/update.sh b/jobd/update.sh index 897bcfa..3115579 100755 --- a/jobd/update.sh +++ b/jobd/update.sh @@ -166,15 +166,15 @@ if [ -S "$sockpath" ] && ! cmp -s .refs-before .refs-after; then join -j 1 .refs-before .refs-after | while read ref old new; do [ "$old" != "$new" ] || continue - echo "ref-change %$proj% $proj $old $new $ref" | nc.openbsd -w 1 -U "$sockpath" + echo "ref-change %$proj% $proj $old $new $ref" | nc_openbsd -w 1 -U "$sockpath" done join -j 1 -v 1 .refs-before .refs-after | while read ref old; do - echo "ref-change %$proj% $proj $old 0000000000000000000000000000000000000000 $ref" | nc.openbsd -w 1 -U "$sockpath" + echo "ref-change %$proj% $proj $old 0000000000000000000000000000000000000000 $ref" | nc_openbsd -w 1 -U "$sockpath" done join -j 1 -v 2 .refs-before .refs-after | while read ref new; do - echo "ref-change %$proj% $proj 0000000000000000000000000000000000000000 $new $ref" | nc.openbsd -w 1 -U "$sockpath" + echo "ref-change %$proj% $proj 0000000000000000000000000000000000000000 $new $ref" | nc_openbsd -w 1 -U "$sockpath" done git config gitweb.lastchange "$(date '+%a, %d %b %Y %T %z')" git for-each-ref --sort=-committerdate --format='%(committerdate:iso8601)' \ -- 2.11.4.GIT