Merge pull request #81 from ExploXd/ExploXd-patch-1

Add notify-send in crontog
This commit is contained in:
Luke Smith 2018-07-30 22:14:03 -04:00 committed by GitHub
commit 0fae2ce2cf

4
.scripts/crontog Executable file → Normal file
View 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.")