diff --git a/src/zush b/src/zush new file mode 100755 index 000000000..0611ce0d9 --- /dev/null +++ b/src/zush @@ -0,0 +1,21 @@ +#!/bin/bash +# Copyright (c) 2019-2020 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=ZUSH + +CLI=${KOMODOCLI:-./komodo-cli} +if [ -f $CLI ]; then + $CLI -ac_name=$NAME "$@" +else + # We prefix our binary when installed + # system wide on Debain system, to prevent clashes + CLI=hush-komodo-cli + $CLI -ac_name=$NAME "$@" +fi