From b21058baa74be75678b597ce51b547d9c5baf790 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Fri, 13 Jun 2025 11:30:01 +0200 Subject: [PATCH] bin/crontab_install --- bin/crontab_install | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bin/crontab_install b/bin/crontab_install index bad4120d..f0084c19 100755 --- a/bin/crontab_install +++ b/bin/crontab_install @@ -60,12 +60,14 @@ Nicolas Boisselier cat_crontab() { local f - for f in .crontab $( + for f in .*crontab $( (hostname -f; hostname -s) \ - | awk '!x[$1]++ && "$1"!="localhost" && !/^ *$/{print ".crontab-host."$1}' \ + | awk '!x[$1]++ && "$1"!="localhost" && !/^ *$/{print ".crontab-host."$1;print ".crontab*."$1}' \ ); do - [ "$DEBUG" = "0" ] || echo "DEBUG: $f $([ -r "$f" ] || echo "NOT ")EXISTS" 1>&2 - [ -r "$f" ] || continue + [ "$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 + #[ -r "$f" ] || continue echo "#---------------------------------------" echo "# >>> $f" echo "#---------------------------------------" -- 2.47.3