From 4425bd21c12cb1387c378251c34dcb874451ebee Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 23 Jun 2023 13:05:59 +0100 Subject: [PATCH] fix(create-daily): remove question marks from ...slugs --- tools/scripts/create-daily.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/scripts/create-daily.sh b/tools/scripts/create-daily.sh index 976ec1af0..1fb0aab40 100755 --- a/tools/scripts/create-daily.sh +++ b/tools/scripts/create-daily.sh @@ -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}"