Add dynamic venv setup

This commit is contained in:
Hannes Körber
2019-04-13 22:04:29 +02:00
parent 06329c0de4
commit 6660efe410

View File

@@ -1,11 +1,15 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source ./venv/bin/activate
set -o nounset set -o nounset
set -o errexit set -o errexit
set -o xtrace set -o xtrace
if [[ ! -e ./venv ]] ; then
python3 -m venv venv
fi
source ./venv/bin/activate
command -v aws || pip install -r ./requirements.txt
export GNUPGHOME=./gpghome export GNUPGHOME=./gpghome
bucket="${1}" ; shift bucket="${1}" ; shift