From 966d037229026a0bbf44f1183fe66dde4e647aa6 Mon Sep 17 00:00:00 2001 From: Joonas Niilola Date: Wed, 24 Feb 2021 10:02:20 +0200 Subject: [PATCH] dev-python/js2py: open the if statement, use double brackets Signed-off-by: Joonas Niilola --- dev-python/js2py/js2py-0.70_p20210218.ebuild | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dev-python/js2py/js2py-0.70_p20210218.ebuild b/dev-python/js2py/js2py-0.70_p20210218.ebuild index 89897bdcda220..998dd3f8363e9 100644 --- a/dev-python/js2py/js2py-0.70_p20210218.ebuild +++ b/dev-python/js2py/js2py-0.70_p20210218.ebuild @@ -36,9 +36,11 @@ python_test() { pushd ./tests >/dev/null || die # Tests require "node_failed.txt" file where the logs are kept - [ -f ./node_failed.txt ] && rm ./node_failed.txt - touch ./node_failed.txt || die + if [[ -f ./node_failed.txt ]]; then + rm ./node_failed.txt || die + fi + touch ./node_failed.txt || die "${EPYTHON}" ./run.py || die "tests failed with ${EPYTHON}" popd >/dev/null || die