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
|
2018-12-05 09:03:25 +03:00
|
|
|
find . -name '*.md' | sort -u > $cwd/tmp.txt
|
2018-12-04 01:19:09 +03:00
|
|
|
popd > /dev/null
|
2018-12-05 09:03:25 +03:00
|
|
|
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
|
2018-12-05 09:03:25 +03:00
|
|
|
find . -name '*.md' | sort -u > $cwd/after.txt
|
2018-11-26 22:48:28 +03:00
|
|
|
popd > /dev/null
|
|
|
|
|
2018-12-05 09:03:25 +03:00
|
|
|
diff before.txt after.txt || {
|
|
|
|
echo "There was a diff, but it's probably not a big deal?"
|
|
|
|
}
|