diff --git a/insert-posts.sh b/insert-posts.sh index f090f08..7ace3cc 100755 --- a/insert-posts.sh +++ b/insert-posts.sh @@ -34,7 +34,7 @@ function update_post() { # params -> slug, title, content, date function insert_post() { - [ ! $# -eq 4 ] && exit 1; + [ ! $# -eq 4 ] && echo "something went wrong" && exit 1 local date=${1:?Date is required} local slug=${2:?Slug is required}