hide stderr

This commit is contained in:
silverwind 2024-04-27 22:03:17 +02:00
parent 399be95ce5
commit 3c48b39b8c
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ cd "$(dirname -- "${BASH_SOURCE[0]}")" && cd ..
# current absolute path, indicating a error was found. This is neccessary
# because the tool does not set non-zero exit code when errors are found.
# ref: https://github.com/golang/go/issues/67078
ERROR_LINES=$("$GO" run "$GOPLS_PACKAGE" check $@ | grep -E "^$PWD");
ERROR_LINES=$("$GO" run "$GOPLS_PACKAGE" check $@ 2>/dev/null | grep -E "^$PWD");
NUM_ERRORS=$(echo "$ERROR_LINES" | wc -l)
if [ "$NUM_ERRORS" -eq "0" ]; then