2
0
mirror of https://github.com/narkoz/hacker-scripts synced 2025-08-31 06:35:15 +00:00

Update cron job to be executed on weekdays only

Updated the cron job so that it only executes the scripts on weekdays, that way there is not need to check for this condition inside the scripts, updated the scripts as well
This commit is contained in:
Julio Ordonez Viales
2015-11-26 19:26:15 -06:00
parent 47e8900c37
commit b9c6dad2c5
12 changed files with 6 additions and 66 deletions

View File

@@ -1,8 +1,5 @@
#!/usr/bin/env ruby
# Skip on weekends
exit if Time.now.saturday? || Time.now.sunday?
# Exit early if no sessions with my username are found
exit unless `who -q`.include? ENV['USER']