swc/crates/swc_atoms/scripts/add-from-cargo-check.sh
2022-09-10 07:20:51 +00:00

6 lines
184 B
Bash

#!/usr/bin/env bash
set -eu
export CARGO_TERM_COLOR=never
cargo check 2>&1 | grep 'no rules expected the token' | sed -e 's/error: no rules expected the token `"//' | sed -e 's/"`//'