element-plus/scripts/file-check.sh

13 lines
309 B
Bash
Raw Permalink Normal View History

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