authrequired/git-daemon-verify: eliminate use of wc -c
commitc830b47570c441da2e854ea4b3538fc5b87e8f0a
authorKyle J. McKay <mackyle@gmail.com>
Sat, 9 Apr 2016 05:14:07 +0000 (8 22:14 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 9 Apr 2016 05:14:07 +0000 (8 22:14 -0700)
tree1ad3cfbe94a783610aa5614fc8e037e8d3985d7b
parentfa86c77cc28aa0edeaf1d58a89e176b1e6c8ab39
authrequired/git-daemon-verify: eliminate use of wc -c

A POSIX-compatible shell provides a convenient ${#var}
construct to determine the length in characters of a
variable's value.

Use it instead of wc -c to eliminate unnecessary overhead.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
bin/git-daemon-verify
cgi/authrequired.cgi