#!/bin/sh

# run-script: Executes an OMERO script wrapper using ImageJ.

set -e

# -- Subroutines --

die () {
	echo "$*" >&2
	exit 1
}

# -- Verify OMERO directory --

test $# -gt 0 ||
	die "Usage: $0 <path/to/script>"

# -- Execute OMERO script wrapper --

"$(dirname "$0")/run-class" net.imagej.omero.ScriptRunner $@
