mirror of
https://github.com/aljazceru/gna.git
synced 2025-12-17 05:54:27 +01:00
@@ -1,5 +1,7 @@
|
||||
# Client
|
||||
|
||||
Requires [nak](https://github.com/fiatjaf/nak/tree/master)
|
||||
|
||||
1. add `./nga` to you `$PATH`
|
||||
2. run `nga` and follow instructions
|
||||
|
||||
|
||||
10
nga.sh
10
nga.sh
@@ -1,6 +1,11 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if ! [ -x "$(command -v nak)" ]; then
|
||||
echo 'Error: nak is not installed.' >&2
|
||||
echo 'Please install nak from https://github.com/fiatjaf/nak/tree/master'
|
||||
fi
|
||||
|
||||
HOOK=`cat <<'EOF'
|
||||
#!/bin/sh\n
|
||||
\n
|
||||
@@ -37,11 +42,6 @@ fi
|
||||
read -p "Provide path to git repository or press \"Enter\" to use curent directory:" GIT_REPO
|
||||
GIT_REPO=${GIT_REPO:-.}
|
||||
|
||||
if [ ! -d $GIT_REPO ]; then
|
||||
echo "$GIT_REPO is not a directory. Exiting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d "$GIT_REPO/.git" ]; then
|
||||
echo "$GIT_REPO is not a directory. Exiting..."
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user