Introduction
Introduction Statistics Contact Development Disclaimer Help
Add mime-type support to the feed output. - tgtimes - The Gopher Times
git clone git://bitreich.org/tgtimes git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws…
Log
Files
Refs
Tags
README
---
commit 59c62038aa875695b93845ce571c099b619edcb9
parent 7105178f2c22dff02d1b1a6c4f8af2f66ac8a56f
Author: Christoph Lohmann <[email protected]>
Date: Sat, 29 Jan 2022 15:03:48 +0100
Add mime-type support to the feed output.
Thanks Bob for the suggestion!
Diffstat:
M archive/mk-atom.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/archive/mk-atom.sh b/archive/mk-atom.sh
@@ -19,7 +19,10 @@ do
find . -type f | cut -d'/' -f 2- \
| while read -r releasefile;
do
- printf "\t\t<link href=\"%s/%s\" />\n" "${uri}" \
+ mimetype="$(file --mime-type -b "${releasefile}")"
+ printf "\t\t<link type=\"%s\" href=\"%s/%s\" />\n" \
+ "${mimetype}" \
+ "${uri}" \
"${releasefile}"
done
cd ..
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.