1 |
commit: 01b27b4cb95b36c2501ccb2b293e47a44d6a7b46 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 20 09:24:10 2021 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 29 20:41:35 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=01b27b4c |
7 |
|
8 |
ebuild-writing/functions/pkg_config: use Bash tests |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
12 |
|
13 |
ebuild-writing/functions/pkg_config/text.xml | 2 +- |
14 |
1 file changed, 1 insertion(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/ebuild-writing/functions/pkg_config/text.xml b/ebuild-writing/functions/pkg_config/text.xml |
17 |
index ac1c996..bf03b87 100644 |
18 |
--- a/ebuild-writing/functions/pkg_config/text.xml |
19 |
+++ b/ebuild-writing/functions/pkg_config/text.xml |
20 |
@@ -48,7 +48,7 @@ Taken from the <c>mysql</c> ebuilds. Note the use of <c>${ROOT}</c>. |
21 |
|
22 |
<codesample lang="ebuild"> |
23 |
pkg_config() { |
24 |
- if [ ! -d "${ROOT}"/var/lib/mysql/mysql ] ; then |
25 |
+ if [[ ! -d ${ROOT}/var/lib/mysql/mysql ]] ; then |
26 |
einfo "Press ENTER to create the mysql database and set proper" |
27 |
einfo "permissions on it, or Control-C to abort now..." |
28 |
read |