Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: styles-check and swag-check monitor just needed directory not project root #747

Merged
merged 3 commits into from Oct 9, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/styles_check.sh
Expand Up @@ -3,14 +3,14 @@
# This script is used to check if the style.css file is up to date.

# Check if the git tree for CWD is clean
if [ -n "$(git status --porcelain)" ]; then
if [ -n "$(git status internal/view/assets/less internal/view/assets/css --porcelain)" ]; then
Monirzadeh marked this conversation as resolved.
Show resolved Hide resolved
echo "❌ git tree is not clean. Please commit all changes before running this script."
exit 1
fi

# Check style.css file
CLEANCSS_OPTS=${CLEANCSS_OPTS} make styles
if [ -n "$(git status --porcelain)" ]; then
if [ -n "$(git status internal/view/assets/less internal/view/assets/css --porcelain)" ]; then
echo "❌ style.css wasn't built from less changes. Please run 'make styles' and commit the changes."
git reset --hard
Monirzadeh marked this conversation as resolved.
Show resolved Hide resolved
exit 1
Expand Down