1
0
dwelling-radio/tools/radio-fetch

9 lines
208 B
Plaintext
Raw Normal View History

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