Files
zeitlaeufer/runProject.sh
2025-09-09 13:53:04 +02:00

13 lines
346 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 ~/zeitlaeufer/;
tmpDir="/tmp/zeitlaeufer_$RANDOM";
mkdir $tmpDir;
cp dist/zeitlaeufer.jar $tmpDir;
cd $originDir;
java -cp $tmpDir/zeitlaeufer.jar $@;
rm -r $tmpDir;