diff options
author | Gaƫtan Lehmann <gaetan.lehmann@jouy.inra.fr> | 2010-08-03 11:00:14 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-08-03 11:07:24 -0400 |
commit | 8653d286060b71b74b5a89ec7075617a76f81c3e (patch) | |
tree | 4c7531f5c6f4dffe6018264694431deeb75f846f | |
parent | 6c7e3f42ba6eb3e415a93b4e6d0494d66474b213 (diff) | |
download | cmake-8653d286060b71b74b5a89ec7075617a76f81c3e.tar.gz |
Reference bash explicitly in shebang lines
On Solaris, where /bin/sh is actually sh, not bash, some expressions
like $() are not supported. Git's own scripts on this machine are
configured to use "#!/bin/bash". Change our shebang line to
#!/usr/bin/env bash
which should work almost everywhere.
-rwxr-xr-x | commit-msg | 2 | ||||
-rwxr-xr-x | pre-commit | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/commit-msg b/commit-msg index e3b51de513..715837c4af 100755 --- a/commit-msg +++ b/commit-msg @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copy or link this file as ".git/hooks/pre-commit". diff --git a/pre-commit b/pre-commit index 75c7f829df..9289382000 100755 --- a/pre-commit +++ b/pre-commit @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copy or link this file as ".git/hooks/pre-commit". |