|
|
@@ -21,10 +21,12 @@ bundle() {
|
|
|
|
|
|
# See if any files have changed.
|
|
|
check_dist() {
|
|
|
- local diff=$(git --no-pager diff $DIST)
|
|
|
- if [[ $diff != "" ]]; then
|
|
|
+ local changed=$(git --no-pager diff --name-only $DIST)
|
|
|
+ if [[ $changed != "" ]]; then
|
|
|
local SHA=$(git rev-parse HEAD)
|
|
|
echo "Commit '$SHA' produced different static assets than were committed"
|
|
|
+ echo "Changed files:"
|
|
|
+ echo "$changed"
|
|
|
exit 1
|
|
|
fi
|
|
|
}
|