sys-apps/portage: use bash tests

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2022-12-10 03:36:57 +00:00
parent 9aae2f6512
commit 7c5c644e38
2 changed files with 2 additions and 2 deletions

View File

@@ -160,7 +160,7 @@ python_prepare_all() {
fi
cd "${S}/cnf" || die
if [ -f "make.conf.example.${ARCH}".diff ]; then
if [[ -f "make.conf.example.${ARCH}".diff ]] ; then
patch make.conf.example "make.conf.example.${ARCH}".diff || \
die "Failed to patch make.conf.example"
else

View File

@@ -155,7 +155,7 @@ python_prepare_all() {
fi
cd "${S}/cnf" || die
if [ -f "make.conf.example.${ARCH}".diff ]; then
if [[ -f "make.conf.example.${ARCH}".diff ]] ; then
patch make.conf.example "make.conf.example.${ARCH}".diff || \
die "Failed to patch make.conf.example"
else