github.com/minio/console@v1.4.1/web-app/check-warnings.sh (about)

     1  #!/bin/bash
     2  
     3  yell() { echo "$0: $*" >&2; }
     4  
     5  die() {
     6    yell "$*"
     7    cat yarn.log
     8    exit 111
     9  }
    10  
    11  try() { "$@" &> yarn.log || die "cannot $*"; }
    12  
    13  rm -f yarn.log
    14  try make build-static
    15  
    16  if cat yarn.log | grep "Compiled with warnings"; then
    17    echo "There are warnings in the code"
    18    exit 1
    19  fi