TUSH is alive and well
This commit is contained in:
17
src/tush-cli
Executable file
17
src/tush-cli
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
# Copyright (c) 2016-2021 The Hush developers
|
||||
|
||||
# set working directory to the location of this script
|
||||
# readlink -f does not always exist
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
cd $DIR
|
||||
DIR="$( cd "$( dirname "$( readlink "${BASH_SOURCE[0]}" )" )" && pwd )"
|
||||
cd $DIR
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user