pf-sdn/unix-wrapper.sh

18 lines
469 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
# Проверяем наличие Java в системе
if ! which java >/dev/null 2>&1; then
echo "Java not found. Please install java, openjdk or JRE" >&2
exit 1
fi
# Получаем полный путь к текущему скрипту
SCRIPT_PATH="$0"
# Запускаем Java с текущим скриптом как параметром и всеми переданными аргументами
java -jar "$SCRIPT_PATH" $@
exit