summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-07-07 16:18:22 -0500
committerCase Duckworth2022-07-07 16:18:22 -0500
commit9043bb193b39d1f549b7b23a5d96d43882344077 (patch)
tree56a00cee1d4797ed973b1dfbab3d3644bc736ecd
parentKill playing radio before playing another (diff)
downloadradio-9043bb193b39d1f549b7b23a5d96d43882344077.tar.gz
radio-9043bb193b39d1f549b7b23a5d96d43882344077.zip
Fancify radio_status
-rwxr-xr-xradio3
1 files changed, 2 insertions, 1 deletions
diff --git a/radio b/radio index 3c1fdda..8209ac7 100755 --- a/radio +++ b/radio
@@ -76,12 +76,13 @@ main() {
76} 76}
77 77
78_radio_status() { 78_radio_status() {
79 trap 'echo;exit 0' INT
79 if [ "x$1" = x-f ]; then 80 if [ "x$1" = x-f ]; then
80 follow=-f 81 follow=-f
81 else 82 else
82 follow= 83 follow=
83 fi 84 fi
84 tail -n4 $follow "$RADIO_STATUS_FILE" 85 tail $follow "$RADIO_STATUS_FILE"
85 echo 86 echo
86 exit 87 exit
87} 88}