From: Nicolas Boisselier Date: Sat, 14 Jun 2025 09:07:43 +0000 (+0200) Subject: bin/crontab_install X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=c22dce301ba4abd2658b8779b7f14e1b9b93a3a2;p=nb.git bin/crontab_install --- diff --git a/bin/crontab_install b/bin/crontab_install index f0084c19..de942118 100755 --- a/bin/crontab_install +++ b/bin/crontab_install @@ -60,10 +60,13 @@ Nicolas Boisselier cat_crontab() { local f - for f in .*crontab $( - (hostname -f; hostname -s) \ - | awk '!x[$1]++ && "$1"!="localhost" && !/^ *$/{print ".crontab-host."$1;print ".crontab*."$1}' \ - ); do + for f in \ + .*crontab \ + $( \ + (hostname -f; hostname -s) \ + | awk '!x[$1]++ && "$1"!="localhost" && !/^ *$/{print ".crontab*."$1}' \ + ) \ + ; do [ "$DEBUG" = "0" ] || echo "DEBUG: EXISTS: $([ -r "$f" ] && echo YES || echo "NO "): $f" 1>&2 #[ "$DEBUG" = "0" ] || echo "DEBUG: $f $([ -r "$f" ] || echo "NOT ")EXISTS" 1>&2 [ -r "$f" -a -s "$f" ] || continue