From dee266aca00a728045b3f5a70ede57e058366b4e Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 18 May 2012 16:39:13 +0200 Subject: [PATCH] ignore "no crontab for ..." message Signed-off-by: Nico Schottelius --- conf/type/__cron/explorer/entry | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/type/__cron/explorer/entry b/conf/type/__cron/explorer/entry index 362c96fe..1b4bec42 100755 --- a/conf/type/__cron/explorer/entry +++ b/conf/type/__cron/explorer/entry @@ -24,7 +24,7 @@ user="$(cat "$__object/parameter/user")" prefix="#cdist:__cron/$name" suffix="#/cdist:__cron/$name" -crontab -u $user -l | awk -v prefix="$prefix" -v suffix="$suffix" ' +crontab -u $user -l 2>/dev/null | awk -v prefix="$prefix" -v suffix="$suffix" ' { if (index($0,prefix)) { triggered=1