Fixing case where the log folder path has spaces

This commit is contained in:
alse
2019-11-26 21:42:02 -08:00
parent 739aa2ccd4
commit 9d5238b0aa

View File

@@ -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";
}