From 154408a24d20c91d208757451360e3204dcec616 Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Thu, 4 May 2023 10:39:52 -0700 Subject: [PATCH] Consistent shell script programming style (#2042) --- prep-megawar.sh | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/prep-megawar.sh b/prep-megawar.sh index 466b29aaf..d43acd4d0 100644 --- a/prep-megawar.sh +++ b/prep-megawar.sh @@ -4,15 +4,13 @@ cd "$(dirname "${0}")" # expects: $LINE -if [ \! -d sample-plugin/target/test-classes/test-dependencies -o \! -d sample-plugin/target/jenkins-for-test ] -then - if [ $LINE = weekly ] - then - PROFILE= - else - PROFILE=-P$LINE - fi - mvn -pl sample-plugin clean test -Dtest=InjectedTest $PROFILE +if [[ ! -d sample-plugin/target/test-classes/test-dependencies || ! -d sample-plugin/target/jenkins-for-test ]]; then + if [[ $LINE == weekly ]]; then + PROFILE= + else + PROFILE=-P$LINE + fi + mvn -pl sample-plugin clean test -Dtest=InjectedTest $PROFILE fi cd sample-plugin/target