1
1
mirror of https://github.com/primer/css.git synced 2024-09-22 06:07:31 +03:00

nix test.sh

This commit is contained in:
Shawn Allen 2019-01-08 16:55:03 -08:00
parent 6fc4a06e13
commit 5586bc03e5

View File

@ -1,22 +0,0 @@
#!/bin/bash
set -e
cwd=`pwd`
if [[ ! -e before.txt ]]; then
pushd ../../../github/styleguide/src/_primer > /dev/null
find . -name '*.md' | sort -u > $cwd/tmp.txt
popd > /dev/null
pushd ../../../github/styleguide/src/primer > /dev/null
find . -name '*.md' | sort -u >> $cwd/tmp.txt
popd > /dev/null
cat tmp.txt | sort -u > before.txt
rm tmp.txt
fi
pushd pages/css > /dev/null
find . -name '*.md' | sort -u > $cwd/after.txt
popd > /dev/null
diff before.txt after.txt || {
echo "There was a diff, but it's probably not a big deal?"
}