]> snippets.scripts.mit.edu Git - Scripts/git/.git/commit
git-hooks/zephyr-post-receive: Portability improvements
authorMitchell E Berger <mitchb@mit.edu>
Fri, 19 Nov 2010 10:36:27 +0000 (05:36 -0500)
committerMitchell E Berger <mitchb@mit.edu>
Fri, 19 Nov 2010 10:36:27 +0000 (05:36 -0500)
commitefdbeff79d528c72d9b4df7c286b49b389f613b5
treeb2de0d5bb937e9136316974bad0d00a301892ba8
parentbb42d128a4f44b0bdfa30c71d7ec6e8dacf2455e
git-hooks/zephyr-post-receive: Portability improvements

$() command substitution is a bashism, so use bash instead of sh
in the shebang line.

'readlink -f' isn't available everywhere, and we're not actually
worried about canonicalizing the path so much as avoiding an
uninformative "." as the name of the repo.  Just cd into the
directory and look at pwd.

Signed-off-by: Mitchell E Berger <mitchb@mit.edu>
git-hooks/zephyr-post-receive