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:
@@ -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']
|
||||
|
||||
|
Reference in New Issue
Block a user