stdenv-setup: Combine [[ .. ]] && [[ .. ]] into one [[ .. && .. ]]

Also remove useless quotes on same line
This commit is contained in:
John Ericson 2017-07-13 14:56:40 -04:00
parent 5d693c84d2
commit 273a4c1c78

View file

@ -742,7 +742,7 @@ configurePhase() {
buildPhase() {
runHook preBuild
if [ -z "$makeFlags" ] && ! [[ -n "$makefile" || -e "Makefile" || -e "makefile" || -e "GNUmakefile" ]]; then
if [[ -z $makeFlags && ! ( -n $makefile || -e Makefile || -e makefile || -e GNUmakefile[[ ) ]]; then
echo "no Makefile, doing nothing"
else
# See https://github.com/NixOS/nixpkgs/pull/1354#issuecomment-31260409