Skip to content

Commit

Permalink
Fixing case where the log folder path has spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
alseambusher committed Nov 27, 2019
1 parent 739aa2c commit 9d5238b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crontab.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

Expand Down

0 comments on commit 9d5238b

Please sign in to comment.