first
This commit is contained in:
13
scripts/callback-agi
Executable file
13
scripts/callback-agi
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
||||
JAR_PATH="${CALLBACK_AGI_JAR:-$SCRIPT_DIR/../target/callback-0.0.1-SNAPSHOT.jar}"
|
||||
|
||||
if [ ! -f "$JAR_PATH" ]; then
|
||||
echo "Callback AGI JAR not found: $JAR_PATH" >&2
|
||||
echo "Set CALLBACK_AGI_JAR to the absolute path of the packaged JAR." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec java -jar "$JAR_PATH"
|
||||
Reference in New Issue
Block a user