mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2025-10-07 07:22:36 +02:00
Merge pull request #81 from ExploXd/ExploXd-patch-1
Add notify-send in crontog
This commit is contained in:
commit
0fae2ce2cf
4
.scripts/crontog
Executable file → Normal file
4
.scripts/crontog
Executable file → Normal file
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
# Toggles all cronjobs off/on.
|
||||
# Stores disabled crontabs in ~/.cronsaved until restored.
|
||||
# Stores disabled crontabs in ~/.consaved until restored.
|
||||
|
||||
([[ -f ~/.cronsaved ]] && cat ~/.cronsaved | crontab - && rm ~/.cronsaved && echo cronjobs re-enabled.) || ( crontab -l > ~/.cronsaved && crontab -r && echo cronjobs saved and disabled. )
|
||||
([[ -f ~/.cronsaved ]] && cat ~/.cronsaved | crontab - && rm ~/.cronsaved && notify-send "Cronjobs have been re-enabled." && echo cronjobs re-enabled.) || ( crontab -l > ~/.cronsaved && crontab -r && echo cronjobs saved and disabled.;notify-send "Cronjobs have been saved and disabled.")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user