From 8a25bfb909880ac69cbc0dbba4879f31637b87e4 Mon Sep 17 00:00:00 2001 From: epoch Date: Wed, 29 Jan 2020 22:56:20 -0600 Subject: remove day files after they have been edited if they are empty --- share/hackvr/examples/calendar/calvr | 3 +++ 1 file changed, 3 insertions(+) (limited to 'share/hackvr/examples') diff --git a/share/hackvr/examples/calendar/calvr b/share/hackvr/examples/calendar/calvr index 74074cb..ecb717a 100755 --- a/share/hackvr/examples/calendar/calvr +++ b/share/hackvr/examples/calendar/calvr @@ -100,6 +100,9 @@ stdbuf -oL grep -v '^#' | while true;do derp=notexists fi x-terminal-emulator -e nano "${file}" + if [ -s "${file}" ];then + rm "${file}" + fi if [ -e "${file}" ];then merp=exists else -- cgit v1.2.3