t/lib-httpd: use write_script to copy CGI scripts
commitc7db2d16474874b21aad9141e6856f836f719643
authorJeff King <peff@peff.net>
Thu, 22 May 2014 09:28:56 +0000 (22 05:28 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 May 2014 19:41:50 +0000 (23 12:41 -0700)
treef24028c4fd5cdbd30b4471c12cad1faf6edceac3
parente2a0ccc01fab1770bd3b2767481137c6f728e5ab
t/lib-httpd: use write_script to copy CGI scripts

Using write_script will set our shebang line appropriately
with $SHELL_PATH. The script that is there now is quite
simple and likely to succeed even with a non-POSIX /bin/sh,
but it does not hurt to be defensive.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-httpd.sh
t/lib-httpd/broken-smart-http.sh [changed mode: 0755->0644]