Files
hush3/contrib/scripts/tush-cli

20 lines
470 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright (c) 2016-2024 The Hush developers
# Resolve binary directory
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ -f "$SCRIPTDIR/hush-cli" ] || [ -f "$SCRIPTDIR/hushd" ]; then
BINDIR="$SCRIPTDIR"
else
BINDIR="$SCRIPTDIR/../../src"
fi
cd "$BINDIR"
NAME=TUSH
# Use the HUSHCLI env var to over-ride using the same directory as this file
CLI=${HUSHCLI:-./hush-cli}
if [ -f $CLI ]; then
$CLI -ac_name=$NAME "$@"
fi