Make scripts use bash and not sh sh doesn't have all of the features of bash and was causing problems for other users. So the scripts use #!/bin/bash now Bug: b/221232298 Change-Id: I6dd2774ee405e441c1e1400813a1e1b67fa5e73e
diff --git a/commit-msg b/commit-msg index a9b4e91..e29fdaa 100755 --- a/commit-msg +++ b/commit-msg
@@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # From Gerrit Code Review 3.4.0-550-gc960fc8f7d # # Part of Gerrit Code Review (https://www.gerritcodereview.com/)
diff --git a/pre-commit b/pre-commit index c63237a..92a1229 100755 --- a/pre-commit +++ b/pre-commit
@@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash if [ -x /usr/lib/git-core/google_hook ]; then /usr/lib/git-core/google_hook pre-commit "$@" else