diff --git a/bin/build_deb.sh b/bin/build_deb.sh index 7df258a2..0c590d71 100755 --- a/bin/build_deb.sh +++ b/bin/build_deb.sh @@ -12,7 +12,11 @@ IFS=$'\n' REPO_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && cd .. && pwd )" -source "$REPO_DIR/.venv/bin/activate" +if [[ -f "$REPO_DIR/.venv/bin/activate" ]]; then + source "$REPO_DIR/.venv/bin/activate" +else + echo "[!] Warning: No virtualenv presesnt in $REPO_DIR.venv" +fi cd "$REPO_DIR" VERSION="$(jq -r '.version' < "$REPO_DIR/package.json")" diff --git a/bin/build_docs.sh b/bin/build_docs.sh index 1e3e6bb5..afc849ed 100755 --- a/bin/build_docs.sh +++ b/bin/build_docs.sh @@ -12,7 +12,11 @@ IFS=$'\n' REPO_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && cd .. && pwd )" -source "$REPO_DIR/.venv/bin/activate" +if [[ -f "$REPO_DIR/.venv/bin/activate" ]]; then + source "$REPO_DIR/.venv/bin/activate" +else + echo "[!] Warning: No virtualenv presesnt in $REPO_DIR.venv" +fi cd "$REPO_DIR"