fix push-asset

master
Greg Gauthier 5 months ago
parent f57233aaae
commit e7f87b457e
  1. 9
      content/post/the-digital-panopticon.md
  2. 6
      push-asset

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

@ -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

Loading…
Cancel
Save