Skip to content

Commit

Permalink
fix change dir
Browse files Browse the repository at this point in the history
  • Loading branch information
azuki774 committed Aug 2, 2024
1 parent 4cf0bff commit 268284f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/money-forward/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function create_s3_credentials {
function s3_upload () {
echo "s3 upload start"
${AWS_BIN} s3 cp ${DATA_DIR}/${YYYYMMDD}/ "s3://${BUCKET_NAME}/${REMOTE_DIR_DAILY}" --recursive --endpoint-url="${BUCKET_URL}"
mv ${DATA_DIR}/${YYYYMMDD} ${DATA_DIR}/latest
mv ${DATA_DIR}/${YYYYMMDD}/* ${DATA_DIR}/latest/
${AWS_BIN} s3 cp ${DATA_DIR}/latest/ "s3://${BUCKET_NAME}/${REMOTE_DIR_LATEST}" --recursive --endpoint-url="${BUCKET_URL}"
echo "s3 upload complete"
}
Expand Down

0 comments on commit 268284f

Please sign in to comment.