File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
2+ banner=" \
3+ # ▗▄▖ ▗▄▖
4+ # ▐▌ ▝▜▌ ▝▜▌
5+ # ▟██▖ █▟█▌ ▟█▙ ▐▙██▖▐███ █▟█▌ ▟█▙ ▐▌ ▐▌
6+ # ▐▛ ▘ █▘ ▐▛ ▜▌▐▛ ▐▌ ▐▌ █▘ ▐▛ ▜▌ ▐▌ ▐▌
7+ # ▐▌ █ ▐▌ ▐▌▐▌ ▐▌ ▐▌ █ ▐▌ ▐▌ ▐▌ ▐▌
8+ # ▝█▄▄▌ █ ▝█▄█▘▐▌ ▐▌ ▐▙▄ █ ▝█▄█▘ ▐▙▄ ▐▙▄
9+ # ▝▀▀ ▀ ▝▀▘ ▝▘ ▝▘ ▀▀ ▀ ▝▀▘ ▀▀ ▀▀
10+ #"
211set -e
312if [ -z " ${CRONDIR} " ]; then
413 crondir=" $HOME /.cron"
@@ -42,12 +51,16 @@ checkargs(){
4251reload_crontab (){
4352 mkdir -p $logdir
4453 if ls * 1> /dev/null 2>&1 ; then
54+ echo " $banner "
55+ echo " # This crontab is managed by crontroll. Do not edit it manually, as it will get overwritten"
56+ echo -n " \n\n\n"
4557 for f in * ; do
4658 mkdir -p " $logdir /$f "
4759 data=" ` cat $f ` "
60+ echo " # $f "
4861 echo -n " $data "
4962 printf " $logcommand " " $logdir /$f "
50- echo
63+ echo " \n "
5164 done
5265 fi| crontab -
5366}
You can’t perform that action at this time.
0 commit comments