\`echo\` in \`bash\` on macOS does not support \`-n\`, so we should not use it (fixes #7)

parent 60a7525c
......@@ -50,8 +50,7 @@ function curlwget {
#
# $1 -- URL to handle
function get_local_filename_from_url() {
echo -n "$1" | sed -E -e 's%https://fonts.googleapis.com/css\?family=%%' -e 's/&(amp;)?/__/' | tr '|:+,=' '_-'
echo '.css'
echo "$1.css" | sed -E -e 's%https://fonts.googleapis.com/css\?family=%%' -e 's/&(amp;)?/__/' | tr '|:+,=' '_-'
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment