18 lines
449 B
Bash
Executable File
18 lines
449 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"
|
|
|
|
DEFAULTS=""
|
|
|
|
# People can just use hushd going forward, but this script makes it
|
|
# more clear what is going on
|
|
HUSH="./hushd"
|
|
$HUSH $DEFAULTS "$@"
|