check for awk, readme update

Signed-off-by: dzdidi <deniszalessky@gmail.com>
This commit is contained in:
dzdidi
2024-02-18 14:41:46 +00:00
parent e4e364e935
commit b7bc24a75c
2 changed files with 7 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
# Client # Client
Requires [nak](https://github.com/fiatjaf/nak/tree/master) Requires [nak](https://github.com/fiatjaf/nak/tree/master)
Requires [jq](https://stedolan.github.io/jq/tree/master)
Requires [awk](https://www.gnu.org/software/gawk)
1. add `./gna` to you `$PATH` 1. add `./gna` to you `$PATH`
2. run `gna` and follow instructions 2. run `gna` and follow instructions

5
gna.sh
View File

@@ -11,6 +11,11 @@ if ! [ -x "$(command -v jq)" ]; then
echo 'Please install jq from https://stedolan.github.io/jq/download/' echo 'Please install jq from https://stedolan.github.io/jq/download/'
fi fi
if ! [ -x "$(command -v awk)" ]; then
echo 'Error: awk is not installed.' >&2
echo 'Please install awk from https://www.gnu.org/software/gawk/'
fi
if ! [ -x "$(command -v pass)" ]; then if ! [ -x "$(command -v pass)" ]; then
echo 'Error: pass is not installed.' >&2 echo 'Error: pass is not installed.' >&2
echo 'Please install pass from https://www.passwordstore.org/' echo 'Please install pass from https://www.passwordstore.org/'