Skip to content

Commit 24f0b53

Browse files
Flo0807Copilot
andauthored
Update scripts/check_assets.sh
Co-authored-by: Copilot <[email protected]>
1 parent 3d40a2e commit 24f0b53

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/check_assets.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
set -e
55

6+
# Check if the priv/static/js directory exists
7+
if [ ! -d "priv/static/js/" ]; then
8+
echo "❌ The directory priv/static/js/ does not exist."
9+
echo "Please ensure the directory exists and try again."
10+
exit 1
11+
fi
612
# Check if there are any changes in priv/static/js directory
713
if ! git diff --exit-code priv/static/js/ > /dev/null 2>&1; then
814
echo "❌ JS assets are not up to date in priv/static/js/"

0 commit comments

Comments
 (0)