chore(pricing): add Drupal testing email course
This commit is contained in:
parent
781373c9d6
commit
da762239ff
3 changed files with 19 additions and 3 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue