From dc80365d97f45abe856de93db7a484b46aa5de4a Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Thu, 8 Dec 2016 05:28:48 +0300 Subject: [PATCH] Prevent error messages in the Cron. --- redmine_doxygen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redmine_doxygen.sh b/redmine_doxygen.sh index fcb95ce..10b2755 100755 --- a/redmine_doxygen.sh +++ b/redmine_doxygen.sh @@ -105,7 +105,7 @@ for i in `seq 0 $((n-1))`; do # Lock dir by creating tag file mkdir -p $DOC_PATH/${identifier[$i]} 2>/dev/null - echo $LAST_TAG >$DOC_PATH/${identifier[$i]}/tag + (echo $LAST_TAG >$DOC_PATH/${identifier[$i]}/tag) 2>/dev/null [ $? != 0 ] && echo "echo $LAST_TAG >$DOC_PATH/${identifier[$i]}/tag failed" && rm -rf $TMP_PATH && rm -f $DOC_PATH/${identifier[$i]}/tag && exit -1 # GENERATING DOCUMENTATION