diff --git a/scripts/check_format.sh b/scripts/check_format.sh index e3a7a8eb6..d3b8123bc 100755 --- a/scripts/check_format.sh +++ b/scripts/check_format.sh @@ -241,7 +241,7 @@ if hash shellcheck 2>/dev/null; then # Error descriptions can also be found at: https://github.com/koalaman/shellcheck/wiki # This SHCK_EXCLUDE list is out "to do" and we work to fix all of this errors. SHCK_EXCLUDE="SC1083,SC2002,\ -SC2010,SC2034,SC2045,SC2046,SC2086,SC2089,SC2090,\ +SC2010,SC2034,SC2045,SC2046,SC2086,SC2090,\ SC2097,SC2098,SC2119,SC2120" # SPDK fails some error checks which have been deprecated in later versions of shellcheck. # We will not try to fix these error checks, but instead just leave the error types here diff --git a/scripts/setup.sh b/scripts/setup.sh index fed8c75b2..baafe15e1 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -653,8 +653,8 @@ function configure_freebsd_pci { GREP_STR="${GREP_STR}\|chip=0x${dev_id}8086" done < $TMP - AWK_PROG="{if (count > 0) printf \",\"; printf \"%s:%s:%s\",\$2,\$3,\$4; count++}" - echo $AWK_PROG > $TMP + AWK_PROG=("{if (count > 0) printf \",\"; printf \"%s:%s:%s\",\$2,\$3,\$4; count++}") + echo "${AWK_PROG[*]}" > $TMP BDFS=$(pciconf -l | grep "${GREP_STR}" | awk -F: -f $TMP)