github.com/drud/ddev@v1.21.5-alpha1.0.20230226034409-94fcc4b94453/.githooks/linkallchecks.sh (about)

     1  #!/bin/bash
     2  
     3  set -o errexit
     4  set -o pipefail
     5  set -o nounset
     6  
     7  # Find the directory of this script
     8  DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
     9  
    10  ln -sf $DIR/pre-push.allchecks $DIR/../.git/hooks/pre-push
    11  
    12  echo "Linked pre-push.allchecks as pre-push git hook"