about summary refs log tree commit diff
path: root/pkgs/stdenv
diff options
context:
space:
mode:
authorRaphael Megzari <raphael@megzari.com>2021-06-30 13:24:48 +0900
committerRaphael Megzari <raphael@megzari.com>2021-07-06 09:27:18 +0900
commitcf5882f27c249f843a357f2da58c763c94b804c1 (patch)
tree258e697c20f6754b3f1c01651a9f33516f20fba0 /pkgs/stdenv
parent2c3b847d29a3600096734da1e550e319bfbc6835 (diff)
downloadnixlib-cf5882f27c249f843a357f2da58c763c94b804c1.tar
nixlib-cf5882f27c249f843a357f2da58c763c94b804c1.tar.gz
nixlib-cf5882f27c249f843a357f2da58c763c94b804c1.tar.bz2
nixlib-cf5882f27c249f843a357f2da58c763c94b804c1.tar.lz
nixlib-cf5882f27c249f843a357f2da58c763c94b804c1.tar.xz
nixlib-cf5882f27c249f843a357f2da58c763c94b804c1.tar.zst
nixlib-cf5882f27c249f843a357f2da58c763c94b804c1.zip
Update pkgs/stdenv/generic/setup.sh:use [[ instead of [
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/stdenv')
-rw-r--r--pkgs/stdenv/generic/setup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh
index 7499a46a03b7..3515439337c6 100644
--- a/pkgs/stdenv/generic/setup.sh
+++ b/pkgs/stdenv/generic/setup.sh
@@ -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