Comparing version 1.1.0 to 1.1.1
@@ -8,4 +8,4 @@ const os = require('os') | ||
console.log('Checking installed cron jobs for user %s.', user) | ||
cron.load(function(err, crontab) { | ||
cron.load(function (err, crontab) { | ||
if (err) console.log(err) | ||
let jobList = crontab.jobs() | ||
@@ -21,3 +21,3 @@ console.log('Found %s cron jobs', jobList.length) | ||
console.log('Adding cron job for user %s.', user) | ||
cron.load(function(err, crontab) { | ||
cron.load(function (err, crontab) { | ||
if (err) console.log(err) | ||
@@ -34,3 +34,3 @@ | ||
} else { | ||
crontab.save(function(err, crontab) { | ||
crontab.save(function (err, crontab) { | ||
if (err) console.log(err) | ||
@@ -46,3 +46,3 @@ else console.log('Job created successfully.') | ||
console.log('Removing cron job for user %s.', user) | ||
cron.load(function(err, crontab) { | ||
cron.load(function (err, crontab) { | ||
if (err) console.log(err) | ||
@@ -52,3 +52,3 @@ | ||
if (job == null || job.length != 1) { | ||
if (job == null || job.length !== 1) { | ||
console.log('No job to remove.') | ||
@@ -58,3 +58,3 @@ } else { | ||
crontab.save(function(err, crontab) { | ||
crontab.save(function (err, crontab) { | ||
if (err) console.log(err) | ||
@@ -64,7 +64,5 @@ else console.log('Job removed successfully.') | ||
} | ||
}) | ||
} | ||
module.exports = { | ||
@@ -71,0 +69,0 @@ list: list, |
{ | ||
"name": "@p4d/cron", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "P4D command line tool to manage cron jobs ", | ||
@@ -5,0 +5,0 @@ "preferGlobal": true, |
@@ -7,3 +7,3 @@ #!/usr/bin/env node | ||
program | ||
.version('1.0.0') | ||
.version('1.1.1') | ||
.description('P4D command line tool to manage cron jobs.') | ||
@@ -10,0 +10,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2827
85