github.com/whyrusleeping/gx@v0.14.3/tests/scripts/gx-test (about)

     1  #!/bin/bash
     2  
     3  cmd="$1"
     4  hook="$2"
     5  shift
     6  shift
     7  
     8  if [ "$cmd" != "hook" ]; then
     9  	echo "command must be 'hook'"
    10  	exit 1
    11  fi
    12  
    13  echo "HOOK RUN: $hook $@" >&2