file-check.sh 309 B

123456789101112
  1. #! /bin/bash
  2. CURRENT_PUBLISHED_TARBALL="$(npm view element-plus dist.tarball)"
  3. echo $CURRENT_PUBLISHED_TARBALL
  4. mkdir -p tmp
  5. curl -o ./tmp/latest.tgz $CURRENT_PUBLISHED_TARBALL
  6. tar zxvf ./tmp/latest.tgz -C ./tmp
  7. diff -qr ./tmp/package ./dist/element-plus | grep "Only" | cut -c 8- | sort > ./tmp/diff.txt