aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-07-22 14:17:52 +0300
committerCem Keylan <cem@ckyln.com>2021-07-22 14:17:52 +0300
commit61297ed5ff35484afba169e3a1374da7c0f3de8e (patch)
treecbe192db1b1eb5b084186ffec800f74cf41339f0
parent71fec5341daf21a10c9daeb5244f767187380b4a (diff)
downloadotools-61297ed5ff35484afba169e3a1374da7c0f3de8e.tar.gz
configure: fix shellcheck errors
-rwxr-xr-xconfigure4
1 files 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"