commit:     01b27b4cb95b36c2501ccb2b293e47a44d6a7b46
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 20 09:24:10 2021 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Mar 29 20:41:35 2021 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=01b27b4c

ebuild-writing/functions/pkg_config: use Bash tests

Signed-off-by: Sam James <sam <AT> gentoo.org>
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 ebuild-writing/functions/pkg_config/text.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ebuild-writing/functions/pkg_config/text.xml 
b/ebuild-writing/functions/pkg_config/text.xml
index ac1c996..bf03b87 100644
--- a/ebuild-writing/functions/pkg_config/text.xml
+++ b/ebuild-writing/functions/pkg_config/text.xml
@@ -48,7 +48,7 @@ Taken from the <c>mysql</c> ebuilds. Note the use of 
<c>${ROOT}</c>.
 
 <codesample lang="ebuild">
 pkg_config() {
-       if [ ! -d "${ROOT}"/var/lib/mysql/mysql ] ; then
+       if [[ ! -d ${ROOT}/var/lib/mysql/mysql ]] ; then
                einfo "Press ENTER to create the mysql database and set proper"
                einfo "permissions on it, or Control-C to abort now..."
                read

Reply via email to