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:
parent
6fc4a06e13
commit
5586bc03e5
22
docs/test.sh
22
docs/test.sh
@ -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?"
|
||||
}
|
Loading…
Reference in New Issue
Block a user