Skip to content

Commit

Permalink
Merge pull request #20 from hazcod/fix/croncomments
Browse files Browse the repository at this point in the history
Fix: ignore cron entries with comments
  • Loading branch information
hazcod authored Jun 13, 2022
2 parents 99d6193 + 67192dc commit e94c068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maclaunch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function getKernelExtensions {
}

function getCronjobs {
crontab -l 2>/dev/null | cut -d ' ' -f 6
crontab -l 2>/dev/null | grep -v '^#' | cut -d ' ' -f 6
}

function listCronJobs {
Expand Down

0 comments on commit e94c068

Please sign in to comment.