From e6086f6822e5bbca44f8a0aa0e676fd8448bcb3f Mon Sep 17 00:00:00 2001 From: Quentin Manfroi Date: Tue, 20 Aug 2019 15:11:06 +0200 Subject: [PATCH] MON-494 ignore error on tail for readme --- scripts/20_update_modules_readmes.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/20_update_modules_readmes.sh b/scripts/20_update_modules_readmes.sh index 3041674..e995ded 100755 --- a/scripts/20_update_modules_readmes.sh +++ b/scripts/20_update_modules_readmes.sh @@ -65,7 +65,9 @@ EOF # split line for each info one variable IFS='|' read filename line < <(echo $row) # gather all config HCL code for current monitor + set +o pipefail config=$(tail -n +${line} ${filename} | sed '/^}/q') + set -o pipefail # parse monitor's name name=$(get_name "$(echo "${config}" | grep 'name[[:space:]]*=')") # search if monitor is enabled