Files
pikasTech-unidesk/scripts/trans
T
2026-06-12 21:06:57 +00:00

12 lines
312 B
Bash
Executable File

#!/bin/sh
set -eu
self_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
self_repo=$(CDPATH= cd -- "$self_dir/.." && pwd)
repo=${UNIDESK_TRANS_REPO_ROOT:-$self_repo}
if [ ! -f "$repo/scripts/cli.ts" ] && [ -f /root/unidesk/scripts/cli.ts ]; then
repo=/root/unidesk
fi
exec bun "$repo/scripts/cli.ts" ssh "$@"