Skip to content

Commit

Permalink
[skip deploy] generate_post_skeleton: Properly concatenate args
Browse files Browse the repository at this point in the history
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
  • Loading branch information
Harsh Shandilya committed Jan 8, 2020
1 parent e095429 commit 55eddf2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions generate_post_skeleton.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function create_post() {
echo -e "\033[01;31mProviding a title is a must!\033[0m"
return
else
title="${@}"
title="${*}"
fi
postdate="$(date -Is)"
postslug="$(echo "${title}" | tr -dc '[:alnum:][:space:]\n\r' | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')"
Expand All @@ -18,4 +18,3 @@ function create_post() {
}

create_post "${@}"

0 comments on commit 55eddf2

Please sign in to comment.