Make proto downloader and python setup scripts runnable from any dir

This commit is contained in:
ghubstan 2022-06-27 10:54:35 -03:00
parent 0148f2ab66
commit 3d4bd7095d
No known key found for this signature in database
GPG Key ID: E35592D6800A861E
2 changed files with 8 additions and 0 deletions

View File

@ -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."

View File

@ -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.
####################################################################################