mirror of
https://github.com/iptv-org/epg
synced 2025-12-15 18:06:40 -05:00
Create check_channels.sh
This commit is contained in:
8
.husky/check_channels.sh
Executable file
8
.husky/check_channels.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
channels_changed="$(git diff --staged --name-only --diff-filter=ACMR -- 'sites/**/*.channels.xml' | sed 's| |\\ |g')"
|
||||
|
||||
if [ ! -z "$channels_changed" ]; then
|
||||
echo "npx eslint $channels_changed"
|
||||
npm run channels:lint -- $channels_changed
|
||||
fi
|
||||
Reference in New Issue
Block a user