mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-11 09:04:35 +02:00
precheck if venv exists instead of soft failing
This commit is contained in:
@@ -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" || true
|
||||
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"
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user