diff options
author | epoch <epoch@hacking.allowed.org> | 2020-01-28 08:21:44 -0600 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2020-01-28 08:21:44 -0600 |
commit | 8b53ffceb49d683a38555ee3c05fa5d834928f9b (patch) | |
tree | ebe94851d92d6d7fc54b6dac30ad4ce4b1536a73 /share/hackvr/examples/calendar/calvr | |
parent | a56b739dcde3cba228a5be6150bbfa525a56eebb (diff) | |
download | hackvr-8b53ffceb49d683a38555ee3c05fa5d834928f9b.tar.gz hackvr-8b53ffceb49d683a38555ee3c05fa5d834928f9b.zip |
not sure how I expected the infinite loop to exit when I wasn't checking for EOF from the read. derp me.
Diffstat (limited to 'share/hackvr/examples/calendar/calvr')
-rwxr-xr-x | share/hackvr/examples/calendar/calvr | 4 |
1 files changed, 3 insertions, 1 deletions
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 |