mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 08:30:06 -04:00
Create check_channels.sh
This commit is contained in:
parent
d81b994161
commit
80828e5446
1 changed files with 8 additions and 0 deletions
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
|
Loading…
Add table
Add a link
Reference in a new issue