diff --git a/scripts/check_format.sh b/scripts/check_format.sh index d330b181a..ad89a761a 100755 --- a/scripts/check_format.sh +++ b/scripts/check_format.sh @@ -240,7 +240,7 @@ if hash shellcheck 2>/dev/null; then # go to: https://trello.com/c/29Z90j1W # Error descriptions can also be found at: https://github.com/koalaman/shellcheck/wiki SHCK_EXCLUDE="SC1001,SC1003,SC1004,SC1010,\ -SC1083,SC1087,SC1090,SC1091,SC1113,SC2001,SC2002,SC2003,SC2004,SC2005,\ +SC1083,SC1090,SC1091,SC1113,SC2001,SC2002,SC2003,SC2004,SC2005,\ SC2009,SC2010,SC2012,SC2013,SC2015,SC2016,SC2018,SC2019,SC2022,SC2026,\ SC2027,SC2030,SC2031,SC2034,SC2035,SC2039,SC2043,SC2044,SC2045,SC2046,SC2048,\ SC2059,SC2068,SC2074,SC2086,SC2088,SC2089,SC2090,SC2091,SC2094,\ diff --git a/test/common/autotest_common.sh b/test/common/autotest_common.sh index 8a9bd3742..ebaa14ada 100644 --- a/test/common/autotest_common.sh +++ b/test/common/autotest_common.sh @@ -549,7 +549,7 @@ function print_backtrace() { local src="${BASH_SOURCE[$i]}" echo "in $src:$line_nr -> $func()" echo " ..." - nl -w 4 -ba -nln $src | grep -B 5 -A 5 "^$line_nr[^0-9]" | \ + nl -w 4 -ba -nln $src | grep -B 5 -A 5 "^${line_nr}[^0-9]" | \ sed "s/^/ /g" | sed "s/^ $line_nr /=> $line_nr /g" echo " ..." done