From e7f87b457e45d20c3abd29d9520b9df9012b5eb1 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Sun, 25 Dec 2022 11:17:08 +0000 Subject: [PATCH] fix push-asset --- content/post/the-digital-panopticon.md | 9 +++++++++ push-asset | 6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 content/post/the-digital-panopticon.md diff --git a/content/post/the-digital-panopticon.md b/content/post/the-digital-panopticon.md new file mode 100644 index 0000000..cef1f8f --- /dev/null +++ b/content/post/the-digital-panopticon.md @@ -0,0 +1,9 @@ +--- +title: "The Digital Panopticon" +date: 2022-12-25T11:03:54Z +tags: [] +topics: [] +image: img/ +description: +draft: true +--- diff --git a/push-asset b/push-asset index 43a10e1..ee07a5a 100755 --- a/push-asset +++ b/push-asset @@ -9,17 +9,17 @@ file=$(basename "${1}") # The assumption is all images are for the blog 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 # The assumption is all audio is for the podcast 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 # The assumption is all video is generic if [[ "$1" =~ .*\.(mp4|mkv|m4v) ]]; then - s3cmd put -P ${1} s3://gmgauthier/videos/${file} + s3cmd put -P "${1}" s3://gmgauthier/videos/"${file}" fi