commit:     dc9f937bfca84bc48579d8aac54b5f1ae72793d2
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 26 19:27:17 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Jul 26 19:27:17 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc9f937b

opam.eclass: [QA] use bash [[ ... ]] brackets

* As specified in `pg0101`

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 eclass/opam.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/opam.eclass b/eclass/opam.eclass
index dee40a4e9f96..3edc2aa86919 100644
--- a/eclass/opam.eclass
+++ b/eclass/opam.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: opam.eclass
@@ -64,7 +64,7 @@ opam_src_install() {
        local pkg="${1:-${PN}}"
        opam-install "${pkg}"
        # Handle opam putting doc in a subdir
-       if [ -d "${ED%/}/usr/share/doc/${PF}/${pkg}" ] ; then
+       if [[ -d ${ED%/}/usr/share/doc/${PF}/${pkg} ]] ; then
                mv "${ED%/}/usr/share/doc/${PF}/${pkg}/"* 
"${ED%/}/usr/share/doc/${PF}/" || die
                rmdir "${ED%/}/usr/share/doc/${PF}/${pkg}" || die
        fi

Reply via email to