summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2020-01-28 08:21:44 -0600
committerepoch <epoch@hacking.allowed.org>2020-01-28 08:21:44 -0600
commit8b53ffceb49d683a38555ee3c05fa5d834928f9b (patch)
treeebe94851d92d6d7fc54b6dac30ad4ce4b1536a73
parenta56b739dcde3cba228a5be6150bbfa525a56eebb (diff)
downloadhackvr-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.
-rwxr-xr-xshare/hackvr/examples/calendar/calvr4
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