Refactor start-venv.sh

This commit is contained in:
Tanvir 2023-11-24 01:14:38 +06:00 committed by GitHub
parent 28440346b1
commit ae3c4350b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,11 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [ ! -f venv/bin/activate ] ; then VENVPATH="venv/bin/activate"
if [ ! -f "$VENVPATH" ]; then
python3 -m venv venv python3 -m venv venv
fi fi
source venv/bin/activate
source "$VENVPATH"
python3 -m pip install -r requirements.txt python3 -m pip install -r requirements.txt
python3 zeronet.py $1 $2 $3 $4 $5 $6 $7 $8 $9 python3 zeronet.py "$@"