Skip to content

Commit bb7ae7c

Browse files
committed
scripts: Fix reformat-code script for "-pl" argument
1 parent 5bd4a7e commit bb7ae7c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/reformat-code.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,9 @@
99
set -e
1010
dirname=$(dirname "$0")
1111
cd "${dirname}/.."
12-
mvn process-sources -Dreformat -Dignorant -pl \!junixsocket-native,\!junixsocket-native-cross,\!junixsocket-native-common,\!junixsocket-native-custom $@
12+
13+
if [[ "$1" != "-pl" ]]; then
14+
mvn process-sources -Dreformat -Dignorant -pl \!junixsocket-native,\!junixsocket-native-cross,\!junixsocket-native-common,\!junixsocket-native-custom $@
15+
else
16+
mvn process-sources -Dreformat -Dignorant $@
17+
fi

0 commit comments

Comments
 (0)