#!/bin/sh if ! /usr/bin/java -version 2>&1 | grep 'version "1.8' >/dev/null then echo "jotasync requires Java 8" >&2 exit 1 fi #unset JAVA_TOOL_OPTIONS exec /usr/bin/java -cp '/usr/share/java/jotasync/jotasync.jar' Client "$@"