Update pkgs/stdenv/generic/setup.sh:use [[ instead of [

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Raphael Megzari 2021-06-30 13:24:48 +09:00
parent 2c3b847d29
commit cf5882f27c

View file

@ -1003,7 +1003,7 @@ configurePhase() {
fi
# By default, disable static builds.
if [ -z "${dontDisableStatic:-}" ]; then
if [[ -z ${dontDisableStatic:-} ]]; then
if grep -q enable-static "$configureScript"; then
configureFlags="--disable-static $configureFlags"
fi