TUSH is alive and well

This commit is contained in:
Duke Leto
2021-09-14 16:03:34 -04:00
parent 49713d8a04
commit 6c0c505eea
2 changed files with 31 additions and 0 deletions

17
src/tush-cli Executable file
View 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

14
src/tushd Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# Copyright (c) 2016-2021 The Hush developers
# Distributed under the GPLv3 software license, see the accompanying
# file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
# 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
./hushd -ac_name=TUSH -ac_private=1 -gen=1 -testnode=1