[skip deploy] generate_post_skeleton: Properly concatenate args

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2020-01-08 10:06:24 +05:30
parent e09542962a
commit 55eddf2a70
No known key found for this signature in database
GPG Key ID: C2E74282C2133D62
1 changed files with 1 additions and 2 deletions

View File

@ -8,7 +8,7 @@ function create_post() {
echo -e "\033[01;31mProviding a title is a must!\033[0m" echo -e "\033[01;31mProviding a title is a must!\033[0m"
return return
else else
title="${@}" title="${*}"
fi fi
postdate="$(date -Is)" postdate="$(date -Is)"
postslug="$(echo "${title}" | tr -dc '[:alnum:][:space:]\n\r' | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')" postslug="$(echo "${title}" | tr -dc '[:alnum:][:space:]\n\r' | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')"
@ -18,4 +18,3 @@ function create_post() {
} }
create_post "${@}" create_post "${@}"