improve code commenting

Signed-off-by: kim (grufwub) <grufwub@gmail.com>
development
kim (grufwub) 4 years ago
parent 03e7384159
commit 6f4714e144

@ -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*$||')

Loading…
Cancel
Save