fix(create-daily): remove question marks from

...slugs
This commit is contained in:
Oliver Davies 2023-06-23 13:05:59 +01:00
parent 2816c163f9
commit 4425bd21c1

View file

@ -14,7 +14,7 @@ shift 1
# Generate the title and slug.
title="${*}"
slug=$(echo "${title}" | awk '{print tolower($0)}' | tr ' ' '-')
slug=$(echo "${title}" | awk '{print tolower($0)}' | tr ' ' '-' | awk '{ gsub("?", ""); print }')
# Create the file.
cp -f --no-clobber stub.md "${filepath}"