cfgfoo

git clone https://orangeshoelaces.net/git/cfgfoo.git

a51e7a8f67e44e3e9eefd772434eb5ff478a1fb3

Author: Vasilii Kolobkov on 12/22/2018

Committer: Vasilii Kolobkov on 12/22/2018

Don't garble existing crontab entries

Stats

steps/crontab/add | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

Patch

diff --git a/steps/crontab/add b/steps/crontab/add
index 12dea5f..c9734c0 100644
--- a/steps/crontab/add
+++ b/steps/crontab/add
@@ -4,7 +4,10 @@ step_taken() {
 
 take_step() {
 	# 'crontab -' is not in POSIX
-	format_crontab_ln "$@" | crontab -
+	{
+		crontab -l
+		format_crontab_ln "$@"
+	} | crontab -
 }
 
 format_crontab_ln() {