From c379d3b3addcde6e5113a4084169af4f5fcdf7cc Mon Sep 17 00:00:00 2001 From: rawley fowler Date: Wed, 7 Sep 2022 18:56:36 -0600 Subject: [PATCH] add error message to shell --- insert-posts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}