diff --git a/git-templates/hooks/applypatch-msg b/git-templates/hooks/applypatch-msg index bc62ba94b6..6f82f1c2e0 100755 --- a/git-templates/hooks/applypatch-msg +++ b/git-templates/hooks/applypatch-msg @@ -1,4 +1,3 @@ -#!/bin/bash +#!/bin/sh -[ -e "build/git-hooks/applypatch-msg" ] && exec bash "build/git-hooks/applypatch-msg" "$@" -exit 0 +[ -e "build/git-hooks/applypatch-msg" ] && exec "build/git-hooks/applypatch-msg" "$@" diff --git a/git-templates/hooks/post-applypatch b/git-templates/hooks/post-applypatch index 9f970733ef..e5e35cc549 100755 --- a/git-templates/hooks/post-applypatch +++ b/git-templates/hooks/post-applypatch @@ -1,4 +1,3 @@ -#!/bin/bash +#!/bin/sh -[ -e "build/git-hooks/post-applypatch" ] && exec bash "build/git-hooks/post-applypatch" "$@" -exit 0 +[ -e "build/git-hooks/post-applypatch" ] && exec "build/git-hooks/post-applypatch" "$@" diff --git a/git-templates/hooks/post-checkout b/git-templates/hooks/post-checkout index 2579434357..ec4dd09843 100755 --- a/git-templates/hooks/post-checkout +++ b/git-templates/hooks/post-checkout @@ -1,4 +1,3 @@ -#!/bin/bash +#!/bin/sh -[ -e "build/git-hooks/post-checkout" ] && exec bash "build/git-hooks/post-checkout" "$@" -exit 0 +[ -e "build/git-hooks/post-checkout" ] && exec "build/git-hooks/post-checkout" "$@" diff --git a/git-templates/hooks/post-commit b/git-templates/hooks/post-commit index 6b1c6c90ea..3c24a72ab0 100755 --- a/git-templates/hooks/post-commit +++ b/git-templates/hooks/post-commit @@ -1,4 +1,3 @@ -#!/bin/bash +#!/bin/sh -[ -e "build/git-hooks/post-commit" ] && exec bash "build/git-hooks/post-commit" "$@" -exit 0 +[ -e "build/git-hooks/post-commit" ] && exec "build/git-hooks/post-commit" "$@" diff --git a/git-templates/hooks/post-merge b/git-templates/hooks/post-merge index 7065306312..2ccd24873b 100755 --- a/git-templates/hooks/post-merge +++ b/git-templates/hooks/post-merge @@ -1,4 +1,3 @@ -#!/bin/bash +#!/bin/sh -[ -e "build/git-hooks/post-merge" ] && exec bash "build/git-hooks/post-merge" "$@" -exit 0 +[ -e "build/git-hooks/post-merge" ] && exec "build/git-hooks/post-merge" "$@" diff --git a/git-templates/hooks/post-update b/git-templates/hooks/post-update index b0fe1c52a4..d66498731c 100755 --- a/git-templates/hooks/post-update +++ b/git-templates/hooks/post-update @@ -1,4 +1,3 @@ -#!/bin/bash +#!/bin/sh -[ -e "build/git-hooks/post-update" ] && exec bash "build/git-hooks/post-update" "$@" -exit 0 +[ -e "build/git-hooks/post-update" ] && exec "build/git-hooks/post-update" "$@" diff --git a/git-templates/hooks/pre-applypatch b/git-templates/hooks/pre-applypatch index c37aa4add5..82841c930e 100755 --- a/git-templates/hooks/pre-applypatch +++ b/git-templates/hooks/pre-applypatch @@ -1,4 +1,3 @@ -#!/bin/bash +#!/bin/sh -[ -e "build/git-hooks/pre-applypatch" ] && exec bash "build/git-hooks/pre-applypatch" "$@" -exit 0 +[ -e "build/git-hooks/pre-applypatch" ] && exec "build/git-hooks/pre-applypatch" "$@" diff --git a/git-templates/hooks/pre-auto-gc b/git-templates/hooks/pre-auto-gc index 0b87a0f80b..109d5f72ca 100755 --- a/git-templates/hooks/pre-auto-gc +++ b/git-templates/hooks/pre-auto-gc @@ -1,4 +1,3 @@ -#!/bin/bash +#!/bin/sh -[ -e "build/git-hooks/pre-auto-gc" ] && exec bash "build/git-hooks/pre-auto-gc" "$@" -exit 0 +[ -e "build/git-hooks/pre-auto-gc" ] && exec "build/git-hooks/pre-auto-gc" "$@" diff --git a/git-templates/hooks/pre-commit b/git-templates/hooks/pre-commit index f5ea25c811..2cb5ca4851 100755 --- a/git-templates/hooks/pre-commit +++ b/git-templates/hooks/pre-commit @@ -1,4 +1,3 @@ -#!/bin/bash +#!/bin/sh -[ -e "build/git-hooks/pre-commit" ] && exec bash "build/git-hooks/pre-commit" "$@" -exit 0 +[ -e "build/git-hooks/pre-commit" ] && exec "build/git-hooks/pre-commit" "$@" diff --git a/git-templates/hooks/pre-rebase b/git-templates/hooks/pre-rebase index dd01fddce5..c0061fea0d 100755 --- a/git-templates/hooks/pre-rebase +++ b/git-templates/hooks/pre-rebase @@ -1,4 +1,3 @@ -#!/bin/bash +#!/bin/sh -[ -e "build/git-hooks/pre-rebase" ] && exec bash "build/git-hooks/pre-rebase" "$@" -exit 0 +[ -e "build/git-hooks/pre-rebase" ] && exec "build/git-hooks/pre-rebase" "$@" diff --git a/git-templates/hooks/prepare-commit-msg b/git-templates/hooks/prepare-commit-msg index c761996635..c00eac4f1a 100755 --- a/git-templates/hooks/prepare-commit-msg +++ b/git-templates/hooks/prepare-commit-msg @@ -1,4 +1,3 @@ -#!/bin/bash +#!/bin/sh -[ -e "build/git-hooks/prepare-commit-msg" ] && exec bash "build/git-hooks/prepare-commit-msg" "$@" -exit 0 +[ -e "build/git-hooks/prepare-commit-msg" ] && exec "build/git-hooks/prepare-commit-msg" "$@"