chore(pricing): add Drupal testing email course

This commit is contained in:
Oliver Davies 2023-09-12 07:53:58 +01:00
parent 781373c9d6
commit da762239ff
3 changed files with 19 additions and 3 deletions

View file

@ -14,7 +14,11 @@ shift 1
# Generate the title and slug.
title="${*}"
slug=$(echo "${title}" | awk '{print tolower($0)}' | tr ' ' '-' | awk '{ gsub("?", ""); print }')
slug=$(echo "${title}" | \
tr '[:upper:]' '[:lower:]' | \
sed 's/[^a-z0-9]/-/g' | \
sed 's/\-\-+/-/g' | \
sed 's/^\-//;s/\-$//')
# Create the file.
cp -f --no-clobber stub.md "${filepath}"