script.sh 195 B

12345678910
  1. set -ex
  2. main() {
  3. for target in $(rustup target list | grep linux-gnu | cut -d' ' -f1); do
  4. rustup target add $target || continue
  5. cargo check --target $target
  6. done
  7. }
  8. main