Files
callback/scripts/callback-agi
2026-09-12 00:19:44 +03:30

14 lines
361 B
Bash
Executable File

#!/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"