|
|
|
@ -1,10 +1,9 @@
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
# Mime types JSON source
|
|
|
|
|
URL='https://raw.githubusercontent.com/micnic/mime.json/master/index.json'
|
|
|
|
|
|
|
|
|
|
IFS='
|
|
|
|
|
'
|
|
|
|
|
|
|
|
|
|
# Define intro to file
|
|
|
|
|
FILE='
|
|
|
|
|
// This is an automatically generated file, do not edit
|
|
|
|
|
package gemini
|
|
|
|
@ -16,6 +15,10 @@ var mimeTypes = map[string]string{
|
|
|
|
|
// Begin file extension definitions
|
|
|
|
|
'
|
|
|
|
|
|
|
|
|
|
# Set break on new-line
|
|
|
|
|
IFS='
|
|
|
|
|
'
|
|
|
|
|
|
|
|
|
|
for line in $(curl -fL "$URL" | grep -E '".+"\s*:\s*".+"'); do
|
|
|
|
|
# Trim final whitespace
|
|
|
|
|
line=$(echo "$line" | sed -e 's|\s*$||')
|
|
|
|
|