From e8c2e26358054deb787c76147732711fdc47fc05 Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Sat, 3 Nov 2018 13:39:43 -0700 Subject: [PATCH] Override shellcheck with explanations. Signed-off-by: Dan Schaper --- automated install/basic-install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index a863272e..b25268b6 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -477,10 +477,12 @@ find_IPv4_information() { route=$(ip route get 8.8.8.8) # Get just the interface IPv4 address - # shellcheck disable=SC2059 + # shellcheck disable=SC2059,SC2086 + # disabled as we intentionally want to split on whitespace and have printf populate + # the variable with just the first field. printf -v IPv4bare "$(printf ${route#*src })" # Get the default gateway IPv4 address (the way to reach the Internet) - # shellcheck disable=SC2059 + # shellcheck disable=SC2059,SC2086 printf -v IPv4gw "$(printf ${route#*via })" if ! valid_ip "${IPv4bare}" ; then