Skip to content

Commit

Permalink
Consistent shell script programming style (#2042)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed May 4, 2023
1 parent 9471ef6 commit 154408a
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions prep-megawar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 154408a

Please sign in to comment.