16 lines
526 B
Bash
Executable File
16 lines
526 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
self_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
|
primary_workspace=$(CDPATH= cd -- "$self_dir/../../.." && pwd)
|
|
shared_tran="$primary_workspace/scripts/tran"
|
|
|
|
if [ ! -x "$shared_tran" ]; then
|
|
printf '%s\n' '{"ok":false,"failureKind":"tool-unavailable","message":"primary UniDesk workspace does not provide executable scripts/tran","source":"primary-workspace","valuesPrinted":false}' >&2
|
|
exit 2
|
|
fi
|
|
|
|
UNIDESK_TRAN_REPO_ROOT="$primary_workspace"
|
|
export UNIDESK_TRAN_REPO_ROOT
|
|
exec "$shared_tran" "$@"
|