#!/usr/bin/env bash

if [[ ! -z "$RELOAD_JARS" ]]; then
    rm -rf ./tmpcode
    . .aws.prod.env
    aws s3 sync s3://qa-royalties-sales-files/code/ ./tmpcode/
fi
. .aws.dev.env
aws s3 sync ./tmpcode/ s3://dev-royalties-sales-files/code/
rm -rf ./tmpcode
