From 61297ed5ff35484afba169e3a1374da7c0f3de8e Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Thu, 22 Jul 2021 14:17:52 +0300 Subject: configure: fix shellcheck errors --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index edb7585..5de199b 100755 --- a/configure +++ b/configure @@ -40,7 +40,7 @@ for arg; do --with-system-zlib) zlib=1 ;; --disable-netcat) netcat=0 ;; -*) die "Unknown flag: '$arg'" ;; - *=*) export "$arg";; + *=*) export "${arg:?}";; *) die "Unknown option: '$arg'" esac done @@ -48,7 +48,7 @@ done trap 'rm -f config.mk' EXIT trap 'rm -f config.mk; exit 1' INT -: ${CC:=cc} +: "${CC:=cc}" printf 'checking system type... ' [ "$host" ] || host=$($CC -dumpmachine 2>/dev/null) || die "Could not determine host" -- cgit v1.2.3