Fix awscli upload

This commit is contained in:
Arnie 2018-01-09 17:43:50 +01:00
parent 9c0461efe6
commit 4c8162b17b

View File

@ -96,10 +96,10 @@ upload() {
__msg "Cache expires on ${EXPIRES}" __msg "Cache expires on ${EXPIRES}"
if [[ -f ${target} ]]; then if [[ -f ${source} ]]; then
# File # File
local dirName=$(dirname ${target}) local dirName=$(dirname ${source})
local filename=$(basename ${target}) local filename=$(basename ${source})
docker run --rm \ docker run --rm \
-u $(id -u):$(id -g) \ -u $(id -u):$(id -g) \
--env AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} \ --env AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} \