diff --git a/aws-cli/run.sh b/aws-cli/run.sh index 68fbcc0..be7fadf 100755 --- a/aws-cli/run.sh +++ b/aws-cli/run.sh @@ -96,10 +96,10 @@ upload() { __msg "Cache expires on ${EXPIRES}" - if [[ -f ${target} ]]; then + if [[ -f ${source} ]]; then # File - local dirName=$(dirname ${target}) - local filename=$(basename ${target}) + local dirName=$(dirname ${source}) + local filename=$(basename ${source}) docker run --rm \ -u $(id -u):$(id -g) \ --env AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} \