diff options
author | epoch <epoch@hacking.allowed.org> | 2020-01-29 22:56:20 -0600 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2020-01-29 22:56:20 -0600 |
commit | 8a25bfb909880ac69cbc0dbba4879f31637b87e4 (patch) | |
tree | 8d96155a9173c786aa4a62098cbce2e3939a8bfe /share/hackvr/examples/calendar/calvr | |
parent | 8b53ffceb49d683a38555ee3c05fa5d834928f9b (diff) | |
download | hackvr-8a25bfb909880ac69cbc0dbba4879f31637b87e4.tar.gz hackvr-8a25bfb909880ac69cbc0dbba4879f31637b87e4.zip |
remove day files after they have been edited if they are empty
Diffstat (limited to 'share/hackvr/examples/calendar/calvr')
-rwxr-xr-x | share/hackvr/examples/calendar/calvr | 3 |
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 |