Add a script to make running the Java solutions cleaner
This commit is contained in:
parent
0ae3d1fbbc
commit
7e47f878e1
1 changed files with 15 additions and 0 deletions
15
run
Executable file
15
run
Executable file
|
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
JAVA_BIN="/home/oliver/.jdks/jdk-17.0.1/bin"
|
||||||
|
|
||||||
|
if [[ $# -lt 2 ]]; then
|
||||||
|
echo "Not enough arguments: $0 <day> <part> [argpass]";
|
||||||
|
exit 1;
|
||||||
|
fi;
|
||||||
|
|
||||||
|
day=$1;
|
||||||
|
if [[ $1 -lt 10 ]]; then
|
||||||
|
day="0$1"
|
||||||
|
fi;
|
||||||
|
|
||||||
|
$JAVA_BIN/java --class-path jlib/*:. day_$day/java/Part$2.java "${@:3}"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue