From 6c0c505eeadc4128380b889758ee6df40b706d98 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Tue, 14 Sep 2021 16:03:34 -0400 Subject: [PATCH] TUSH is alive and well --- src/tush-cli | 17 +++++++++++++++++ src/tushd | 14 ++++++++++++++ 2 files changed, 31 insertions(+) create mode 100755 src/tush-cli create mode 100755 src/tushd diff --git a/src/tush-cli b/src/tush-cli new file mode 100755 index 000000000..fa40e9f81 --- /dev/null +++ b/src/tush-cli @@ -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 diff --git a/src/tushd b/src/tushd new file mode 100755 index 000000000..ad5fafa21 --- /dev/null +++ b/src/tushd @@ -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 +