diff --git a/check_bird2_oneshot b/check_bird2_oneshot index 8115e74..d591ab0 100755 --- a/check_bird2_oneshot +++ b/check_bird2_oneshot @@ -100,6 +100,8 @@ if [ "$(cat ${DIR}/bird-err)" != '' ]; then printf "ERROR: $(cat ${DIR}/bird-err)\n" rm -r ${DIR} exit 2 +else + rm ${DIR}/bird-err fi for protocol in $(cat ${CONF_IGNORE_FILE}); do