From 9d5238b0aa1de2368d74e4a0f5f8053fe206f253 Mon Sep 17 00:00:00 2001 From: alse Date: Tue, 26 Nov 2019 21:42:02 -0800 Subject: [PATCH] Fixing case where the log folder path has spaces --- crontab.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crontab.js b/crontab.js index c195d2b..2d492fe 100644 --- a/crontab.js +++ b/crontab.js @@ -103,8 +103,8 @@ exports.set_crontab = function(env_vars, callback){ if (tab.logging && tab.logging == "true") { crontab_string += "; if test -f " + stderr + - "; then date >> " + log_file + - "; cat " + stderr + " >> " + log_file + + "; then date >> \"" + log_file + "\"" + + "; cat " + stderr + " >> \"" + log_file + "\"" + "; fi"; }