stdenv: Make condition clearer

-z checks for a empty string
-n checks for a not empty string

It makes more sense to run the chmod if the string is not empty

Artturin 9816ca55 1fb56074

+1 -1
+1 -1
pkgs/stdenv/generic/setup.sh
··· 1594 1594 1595 1595 if [ "$curPhase" = unpackPhase ]; then 1596 1596 # make sure we can cd into the directory 1597 - [ -z "${sourceRoot}" ] || chmod +x "${sourceRoot}" 1597 + [ -n "${sourceRoot:-}" ] && chmod +x "${sourceRoot}" 1598 1598 1599 1599 cd "${sourceRoot:-.}" 1600 1600 fi