Skip to content

Commit

Permalink
Merge pull request #28 from azuki774/fix-latest-dir
Browse files Browse the repository at this point in the history
fix change dir
  • Loading branch information
azuki774 authored Aug 2, 2024
2 parents 4cf0bff + 268284f commit ee5673d
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 ee5673d

Please sign in to comment.