From 15aef9157c12a8950cd8b3c5ea5d811dde57cd4c Mon Sep 17 00:00:00 2001 From: Rawley Fowler Date: Wed, 25 Jan 2023 02:24:54 -0600 Subject: [PATCH] make post errors go to stderr --- insert-posts.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/insert-posts.sh b/insert-posts.sh index 7665f0f..010cdb4 100755 --- a/insert-posts.sh +++ b/insert-posts.sh @@ -1,5 +1,6 @@ #!/bin/bash - +# This is free-software, and a part of github.com/rawleyfowler/rawleydotxyz +# NOTE: This will most likely be replaced by a Perl or Raku script at some point. function usage() { echo "Usage: insert-posts" echo "Tool for inserting posts into a SQLite3 database." @@ -29,7 +30,7 @@ function update_post() { local status="$?" [[ "$status" = "0" ]] && echo "Successfully updated already existing post: $slug" && return - echo "Failed to update, or insert post: $slug." + >&2 echo "Failed to update, or insert post: $slug." } # params -> slug, title, content, date