mirror of
https://github.com/tbluemel/rtf.js.git
synced 2026-11-30 16:47:59 +01:00
18 lines
360 B
Bash
18 lines
360 B
Bash
#!/usr/bin/env bash
|
|
|
|
npm run build
|
|
|
|
GIT_STATUS=`git status --porcelain`
|
|
printf "\n\n> git status --porcelain\n"
|
|
printf "$GIT_STATUS"
|
|
|
|
CHANGED_FILES=`printf "$GIT_STATUS" | wc -m`
|
|
|
|
if [ "$CHANGED_FILES" -gt 0 ]; then
|
|
printf "\n\nCommitted bundles don't include all changes\n"
|
|
else
|
|
printf "\n\nCommitted bundles are up-to-date\n"
|
|
fi
|
|
|
|
exit "$CHANGED_FILES"
|