From 38eba38c4f9f6b64a58cd6e0418c67ec20ea748c Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 3 Sep 2023 22:41:43 -0700 Subject: [PATCH] Wwrechard/update bootstrap (#64) * update bootstrap file * clean unnecessary files * remove unnecesary files --- .gitignore | 4 +++- scripts/bootstrap | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 3806a6d2..a39d1615 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,6 @@ dist/ pydlm.egg-info/ pydlm.venv/ *.venv/ -clear/ \ No newline at end of file +clear/ +build/ +install/ \ No newline at end of file diff --git a/scripts/bootstrap b/scripts/bootstrap index e53abcbd..17832b60 100644 --- a/scripts/bootstrap +++ b/scripts/bootstrap @@ -1,8 +1,13 @@ #!/bin/bash -cd "$(dirname -- "$0")/.." VENV="$(basename $PWD).venv" +if [ "$VENV" != "pydlm.venv" ]; then + echo "Error creating the virtual env..." + echo "Please run bootstrap script in the root directory." + return 1 +fi + echo "==> Preparing dependencies..." PY_VERSION=$PYENV_VERSION