github.com/waldiirawan/apm-agent-go/v2@v2.2.2/scripts/check_vanity.sh (about) 1 #!/bin/sh 2 set -e 3 4 out=$(go run github.com/jcchavezs/porto/cmd/porto -l .) 5 out=$(echo $out | (xargs grep -L "Code generated by" || true)) 6 7 if [ -n "$out" ]; then 8 out=$(echo $out | sed 's/ /\n - /') 9 printf "Vanity imports are not up to date:\n - $out\n" >&2 10 exit 1 11 fi