1
1
mirror of https://github.com/primer/css.git synced 2024-12-03 03:33:40 +03:00
css/docs/test.sh

23 lines
568 B
Bash
Raw Normal View History

2018-12-04 01:19:09 +03:00
#!/bin/bash
2018-11-26 22:48:28 +03:00
set -e
cwd=`pwd`
2018-12-04 01:19:09 +03:00
if [[ ! -e before.txt ]]; then
pushd ../../../github/styleguide/src/_primer > /dev/null
find . -name '*.md' | sort -u > $cwd/tmp.txt
2018-12-04 01:19:09 +03:00
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
2018-12-04 01:19:09 +03:00
fi
2018-11-26 22:48:28 +03:00
pushd pages/css > /dev/null
find . -name '*.md' | sort -u > $cwd/after.txt
2018-11-26 22:48:28 +03:00
popd > /dev/null
diff before.txt after.txt || {
echo "There was a diff, but it's probably not a big deal?"
}