fix push-asset

This commit is contained in:
Greg Gauthier 2022-12-25 11:17:08 +00:00
parent f57233aaae
commit e7f87b457e
2 changed files with 12 additions and 3 deletions

View File

@ -0,0 +1,9 @@
---
title: "The Digital Panopticon"
date: 2022-12-25T11:03:54Z
tags: []
topics: []
image: img/
description:
draft: true
---

View File

@ -9,17 +9,17 @@ file=$(basename "${1}")
# The assumption is all images are for the blog # The assumption is all images are for the blog
if [[ "$1" =~ .*\.(gif|jpg|png) ]]; then if [[ "$1" =~ .*\.(gif|jpg|png) ]]; then
s3cmd put -P ${1} s3://gmgauthier/blog/img/${file} s3cmd put -P "${1}" s3://gmgauthier/blog/img/"${file}"
fi fi
# The assumption is all audio is for the podcast # The assumption is all audio is for the podcast
if [[ "$1" =~ .*\.(mp3|ogg|wav) ]]; then if [[ "$1" =~ .*\.(mp3|ogg|wav) ]]; then
s3cmd put -P ${1} s3://gmgauthier/podcast/audio/${file} s3cmd put -P "${1}" s3://gmgauthier/podcast/audio/"${file}"
fi fi
# The assumption is all video is generic # The assumption is all video is generic
if [[ "$1" =~ .*\.(mp4|mkv|m4v) ]]; then if [[ "$1" =~ .*\.(mp4|mkv|m4v) ]]; then
s3cmd put -P ${1} s3://gmgauthier/videos/${file} s3cmd put -P "${1}" s3://gmgauthier/videos/"${file}"
fi fi