From 36fd85121bb0ba7849efcc5b9b0520c18a2d78e0 Mon Sep 17 00:00:00 2001 From: "xiongdian.me" Date: Tue, 16 Apr 2024 19:34:24 +0800 Subject: [PATCH] feat(test.zsh): test crontab --- tools/test.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/test.zsh b/tools/test.zsh index 4625b36..e37dd7c 100644 --- a/tools/test.zsh +++ b/tools/test.zsh @@ -21,6 +21,9 @@ test -f .zshrc2 diff -q ./.ssh/authorized_keys2 ~/.ssh/authorized_keys2 diff -q ./.eid/authorized_certificates ~/.eid/authorized_certificates grep -q ".zshrc2" ~/.zshrc +if [[ -x $(command -v crontab) ]]; then + crontab -l | grep -qxF "0 * * * * ${DOTFILES}/update.sh" +fi # check scripts and functions dfs version