0
0
Fork 0

Add a script to make running the Java solutions cleaner

This commit is contained in:
Oliver Akins 2022-12-08 12:29:22 -06:00
parent 0ae3d1fbbc
commit 7e47f878e1
No known key found for this signature in database
GPG key ID: 3C2014AF9457AF99

15
run Executable file
View 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}"