[skip deploy] generate_post_skeleton: Properly concatenate args
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
e09542962a
commit
55eddf2a70
|
@ -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 "${@}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue