2023-09-30 23:59:06 +04:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
2023-10-07 06:03:16 +04:00
|
|
|
outp="$(curl -XGET --unix-socket /var/run/dwelling-radio/sock http:/api/playlist -s -w '%{response_code}')"
|
2023-09-30 23:59:06 +04:00
|
|
|
|
2023-10-07 06:03:16 +04:00
|
|
|
if [ "${outp: -3}" != "200" ]; then
|
2023-09-30 23:59:06 +04:00
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
|
2023-10-07 06:03:16 +04:00
|
|
|
echo ${outp%????}
|