9 lines
197 B
Bash
Executable File
9 lines
197 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
outp="$(curl -XGET --unix-socket /var/run/dwelling-radio/sock http:/api/playlist -s -w '%{response_code}')"
|
|
|
|
if [ "${outp: -3}" != "200" ]; then
|
|
exit 1;
|
|
fi
|
|
|
|
echo ${outp%????} |