mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-10-01 01:45:38 -04:00
23 lines
399 B
Plaintext
23 lines
399 B
Plaintext
|
#!/bin/sh
|
||
|
set -eu
|
||
|
|
||
|
if [ -e /etc/debian_version ]; then
|
||
|
dpkg -s python3-venv || sudo apt install python3-venv
|
||
|
fi
|
||
|
|
||
|
# their current venv might have gone funky...
|
||
|
if [ -e venv ] && [ ! -e wipedonce ]; then
|
||
|
rm -rf venv
|
||
|
touch wipedonce
|
||
|
fi
|
||
|
|
||
|
if [ ! -e venv ]; then
|
||
|
python3 -m venv venv
|
||
|
. ./venv/bin/activate
|
||
|
pip3 install -r requirements.txt
|
||
|
else
|
||
|
. ./venv/bin/activate
|
||
|
fi
|
||
|
|
||
|
./production_test.py
|