commit: 46324633cbcf50fa6e09bedfe317f088de50fc08 Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Mon Feb 5 00:58:01 2018 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Mon Feb 5 01:02:38 2018 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=46324633
einstall: borrow src_install code for Makefile test This fixes the following error when 2 files exist: $ [ -f ./[mM]akefile ] bash: [: ./makefile: binary operator expected Reported-by: R0b0t1 <r030t1 <AT> gmail.com> See: https://github.com/gentoo/portage/pull/251 bin/phase-helpers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh index 9b1f6adbe..23cf80b39 100644 --- a/bin/phase-helpers.sh +++ b/bin/phase-helpers.sh @@ -696,7 +696,7 @@ einstall() { unset EI_DESTLIBDIR fi - if [ -f ./[mM]akefile -o -f ./GNUmakefile ] ; then + if [[ -f Makefile || -f GNUmakefile || -f makefile ]] ; then if [ "${PORTAGE_DEBUG}" == "1" ]; then ${MAKE:-make} -n prefix="${ED}usr" \ datadir="${ED}usr/share" \
