nx/scripts/documentation/check-documentation.sh
Benjamin Cabanes 0bbcacd954 ci(travis): documentation check changes (#1062)
Essentially checking if the `yarn documentation` produces un-staged
files, if yes, then exiting with code 1.
2019-02-12 12:43:02 -05:00

10 lines
253 B
Bash
Executable File

#!/usr/bin/env bash
if [ -z "$(git status --porcelain ./docs)" ]; then
echo "📄 Documentation not modified";
exit 0;
else
echo "📄 Documentation has been modified, you need to commit the changes.";
git status --porcelain ./docs
exit 1;
fi