mirror of
https://github.com/bisq-network/bisq-api-reference.git
synced 2026-03-14 01:10:14 +00:00
Make proto downloader and python setup scripts runnable from any dir
This commit is contained in:
parent
0148f2ab66
commit
3d4bd7095d
@ -7,6 +7,10 @@ REPO_OWNER="bisq-network"
|
||||
REPO_BRANCH="master"
|
||||
REPO_PROTO_DIR_URL="https://raw.githubusercontent.com/$REPO_OWNER/bisq/$REPO_BRANCH/proto/src/main/proto"
|
||||
|
||||
# Get the script directory (relative to the current directory), cd into the directory, use pwd to get the absolute path.
|
||||
export SCRIPT_DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
|
||||
cd "$SCRIPT_DIR"
|
||||
|
||||
echo "Downloading Bisq protobuf files from $REPO_PROTO_DIR_URL to $PROTO_PATH directory..."
|
||||
echo "You can skip this step and copy your own local .proto files instead."
|
||||
|
||||
|
||||
@ -2,6 +2,10 @@
|
||||
|
||||
# This script must be run from this directory.
|
||||
|
||||
# Get the script directory (relative to the current directory), cd into the directory, use pwd to get the absolute path.
|
||||
export SCRIPT_DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
|
||||
cd "$SCRIPT_DIR"
|
||||
|
||||
####################################################################################
|
||||
# Install python3-venv if necessary.
|
||||
####################################################################################
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user