summaryrefslogtreecommitdiff
path: root/share/hackvr
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2020-01-29 22:56:20 -0600
committerepoch <epoch@hacking.allowed.org>2020-01-29 22:56:20 -0600
commit8a25bfb909880ac69cbc0dbba4879f31637b87e4 (patch)
tree8d96155a9173c786aa4a62098cbce2e3939a8bfe /share/hackvr
parent8b53ffceb49d683a38555ee3c05fa5d834928f9b (diff)
downloadhackvr-8a25bfb909880ac69cbc0dbba4879f31637b87e4.tar.gz
hackvr-8a25bfb909880ac69cbc0dbba4879f31637b87e4.zip
remove day files after they have been edited if they are empty
Diffstat (limited to 'share/hackvr')
-rwxr-xr-xshare/hackvr/examples/calendar/calvr3
1 files changed, 3 insertions, 0 deletions
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