Handle project root correctly

This commit is contained in:
Hannes Körber
2019-04-13 22:10:45 +02:00
parent 6660efe410
commit 8c68c60602

View File

@@ -4,13 +4,15 @@ set -o nounset
set -o errexit set -o errexit
set -o xtrace set -o xtrace
if [[ ! -e ./venv ]] ; then dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
python3 -m venv venv
fi
source ./venv/bin/activate
command -v aws || pip install -r ./requirements.txt
export GNUPGHOME=./gpghome if [[ ! -e "${dir}/venv" ]] ; then
python3 -m venv "${dir}/venv"
fi
source "${dir}/venv/bin/activate"
command -v aws || pip install -r "${dir}/requirements.txt"
export GNUPGHOME="$(mktemp -d)"
bucket="${1}" ; shift bucket="${1}" ; shift
name="${1}" ; shift name="${1}" ; shift
@@ -33,7 +35,7 @@ tmpgpg() {
"${@}" "${@}"
} }
tmpgpg --import ./pubkey.asc tmpgpg --import "${dir}/pubkey.asc"
tar \ tar \
--create \ --create \
--verbose \ --verbose \