From 8b53ffceb49d683a38555ee3c05fa5d834928f9b Mon Sep 17 00:00:00 2001 From: epoch Date: Tue, 28 Jan 2020 08:21:44 -0600 Subject: not sure how I expected the infinite loop to exit when I wasn't checking for EOF from the read. derp me. --- share/hackvr/examples/calendar/calvr | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'share') diff --git a/share/hackvr/examples/calendar/calvr b/share/hackvr/examples/calendar/calvr index aa95388..74074cb 100755 --- a/share/hackvr/examples/calendar/calvr +++ b/share/hackvr/examples/calendar/calvr @@ -63,7 +63,9 @@ stdbuf -oL grep -v '^#' | while true;do day="$(date +%e | tr -d ' ')" # printf "%s move 0 0 3\n" "_${day}_" fi - read group action target + if ! read group action target;then + exit + fi #xmessage "$group $action $target" if [ "$action" = "action" ];then if [ "$target" = "_nextmonth_" ];then -- cgit v1.2.3