mirror of
https://github.com/mistergibson/radio.git
synced 2026-09-09 06:19:52 -07:00
testing
This commit is contained in:
parent
57aa2aa1c9
commit
11e1292a75
3 changed files with 55 additions and 52 deletions
12
check_dirs.sh
Executable file
12
check_dirs.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
STORAGE="/mnt/storage/radio"
|
||||
JINGLES="no"
|
||||
ANNOUNCEMENTS="no"
|
||||
if find "$STORAGE/jingles" -type f \( -name "*.mp3" -o -name "*.m4a" \) 2>/dev/null | grep -q .; then
|
||||
JINGLES="yes"
|
||||
fi
|
||||
if find "$STORAGE/announcements" -type f \( -name "*.mp3" -o -name "*.m4a" \) 2>/dev/null | grep -q .; then
|
||||
ANNOUNCEMENTS="yes"
|
||||
fi
|
||||
echo "jingles=$JINGLES" > /srv/radio/dirs.txt
|
||||
echo "announcements=$ANNOUNCEMENTS" >> /srv/radio/dirs.txt
|
||||
Loading…
Reference in a new issue