diff options
author | Case Duckworth | 2022-07-07 16:18:22 -0500 |
---|---|---|
committer | Case Duckworth | 2022-07-07 16:18:22 -0500 |
commit | 9043bb193b39d1f549b7b23a5d96d43882344077 (patch) | |
tree | 56a00cee1d4797ed973b1dfbab3d3644bc736ecd | |
parent | Kill playing radio before playing another (diff) | |
download | radio-9043bb193b39d1f549b7b23a5d96d43882344077.tar.gz radio-9043bb193b39d1f549b7b23a5d96d43882344077.zip |
Fancify radio_status
-rwxr-xr-x | radio | 3 |
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 | } |