Files
zeitlaeufer/runProject.sh
2025-11-19 11:12:01 +01:00

15 lines
459 B
Bash

#!/usr/bin/env bash
set -uo pipefail
# when executed as executable file in "git for windows" bash some things won't work, so always run with prefixed command
originDir=$(pwd);
cd /g/zeitlaeufer/;
tmpDir="/tmp/zeitlaeufer_$RANDOM";
mkdir $tmpDir;
cp dist/zeitlaeufer.jar $tmpDir;
cd $originDir;
# java -jar $tmpDir/zeitlaeufer.jar $@;
# -p <=> --module-path | -m <=> --module
java --module-path $tmpDir/zeitlaeufer.jar --module zeitlaeufer $@;
rm -r $tmpDir;