|
|
@@ -4,7 +4,7 @@ TRACK=java
|
|
4
|
4
|
TRACK_REPO="$TRACK"
|
|
5
|
5
|
TRACK_SRC_EXT="java"
|
|
6
|
6
|
CPU_CORES=`getconf NPROCESSORS_ONLN 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1`
|
|
7
|
|
-EXERCISE_TO_SOLVE=$1
|
|
|
7
|
+EXERCISES_TO_SOLVE=$@
|
|
8
|
8
|
|
|
9
|
9
|
on_exit() {
|
|
10
|
10
|
echo ">>> on_exit()"
|
|
|
@@ -333,10 +333,12 @@ main() {
|
|
333
|
333
|
# Create a CLI install and config just for this build; this script does not use your CLI install.
|
|
334
|
334
|
configure_exercism_cli "${exercism_home}" "${exercism_configfile}" "${xapi_port}"
|
|
335
|
335
|
|
|
336
|
|
- if [[ ${EXERCISE_TO_SOLVE} == "" ]]; then
|
|
|
336
|
+ if [[ $EXERCISES_TO_SOLVE == "" ]]; then
|
|
337
|
337
|
solve_all_exercises "${exercism_home}" "${exercism_configfile}"
|
|
338
|
338
|
else
|
|
339
|
|
- solve_single_exercise "${exercism_home}" "${exercism_configfile}" "${EXERCISE_TO_SOLVE}"
|
|
|
339
|
+ for exercise in $EXERCISES_TO_SOLVE
|
|
|
340
|
+ do solve_single_exercise "${exercism_home}" "${exercism_configfile}" "${exercise}"
|
|
|
341
|
+ done
|
|
340
|
342
|
fi
|
|
341
|
343
|
}
|
|
342
|
344
|
|