code.gitea.io/gitea@v1.21.7/tests/gitea-repositories-meta/user30/renderer.git/hooks/update (about)

     1  #!/usr/bin/env bash
     2  exitcodes=""
     3  hookname=$(basename $0)
     4  GIT_DIR=${GIT_DIR:-$(dirname $0)}
     5  
     6  for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do
     7  test -x "${hook}" && test -f "${hook}" || continue
     8  "${hook}" $1 $2 $3
     9  exitcodes="${exitcodes} $?"
    10  done
    11  
    12  for i in ${exitcodes}; do
    13  [ ${i} -eq 0 ] || exit ${i}
    14  done